View | Details | Raw Unified | Return to bug 17346
Collapse All | Expand All

(-)libmp3splt-0.5/include/libmp3splt/cddb.h~ (+1 lines)
Lines 95-100 char *splt_freedb_get_file(splt_state *s Link Here
95
#define SPLT_CUE_TITLE 2
95
#define SPLT_CUE_TITLE 2
96
#define SPLT_CUE_PERFORMER 3
96
#define SPLT_CUE_PERFORMER 3
97
#define SPLT_CUE_INDEX 4
97
#define SPLT_CUE_INDEX 4
98
#define SPLT_CUE_YEAR 5
98
99
99
//proxy stuff
100
//proxy stuff
100
//#define PROXYCONFIG ".mp3splt"
101
//#define PROXYCONFIG ".mp3splt"
(-)libmp3splt-0.5/src/cddb.c~ (+35 lines)
Lines 293-298 static int splt_cue_set_value(splt_state Link Here
293
          snprintf(client_infos,strlen(out)+30,"  Album: %s\n", out);
293
          snprintf(client_infos,strlen(out)+30,"  Album: %s\n", out);
294
          splt_t_put_message_to_client(state, client_infos);
294
          splt_t_put_message_to_client(state, client_infos);
295
        }
295
        }
296
        else if (tag_field == SPLT_TAGS_YEAR)
297
        {
298
          snprintf(client_infos,strlen(out)+30,"  Year: %s\n", out);
299
          splt_t_put_message_to_client(state, client_infos);
300
        }
296
        free(client_infos);
301
        free(client_infos);
297
        client_infos = NULL;
302
        client_infos = NULL;
298
303
Lines 399-404 int splt_cue_put_splitpoints(const char Link Here
399
          line_content += 5;
404
          line_content += 5;
400
          type = SPLT_CUE_TITLE;
405
          type = SPLT_CUE_TITLE;
401
        }
406
        }
407
        else if ((line_content = strstr(line, "DATE")) != NULL)
408
        {
409
          line_content += 4;
410
          type = SPLT_CUE_YEAR;
411
        }
402
        else if ((line_content = strstr(line, "PERFORMER")) != NULL)
412
        else if ((line_content = strstr(line, "PERFORMER")) != NULL)
403
        {
413
        {
404
          type = SPLT_CUE_PERFORMER;
414
          type = SPLT_CUE_PERFORMER;
Lines 463-468 int splt_cue_put_splitpoints(const char Link Here
463
              title = SPLT_TRUE;
473
              title = SPLT_TRUE;
464
            }
474
            }
465
            break;
475
            break;
476
          //YEAR found
477
          case SPLT_CUE_YEAR:
478
            if (tracks == -1)
479
            {
480
              if ((temp_error = splt_cue_set_value(state, line_content, 
481
                      0, SPLT_TAGS_YEAR)) != SPLT_OK)
482
              {
483
                *error = temp_error;
484
                goto function_end;
485
              }
486
            }
487
            else
488
            {
489
              if (tracks > 0)
490
              {
491
                if ((temp_error = splt_cue_set_value(state, line_content,
492
                        tracks-1, SPLT_TAGS_YEAR)) != SPLT_OK)
493
                {
494
                  *error = temp_error;
495
                  goto function_end;
496
                }
497
              }
498
              title = SPLT_TRUE;
499
            }
500
            break;
466
          //PERFORMER found
501
          //PERFORMER found
467
          case SPLT_CUE_PERFORMER:        
502
          case SPLT_CUE_PERFORMER:        
468
            if (tracks == -1)
503
            if (tracks == -1)

Return to bug 17346