~jcowgill/ubuntu/trusty/easytag/bug-1295882

« back to all changes in this revision

Viewing changes to src/ogg_tag.c

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2012-04-13 21:14:54 UTC
  • mfrom: (8.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120413211454-32npmljr4ftjth3u
Tags: 2.1.7-1ubuntu1
* Merge from Debian unstable (LP: #883019, #979316)
  remaining Ubuntu changes:
  + debian/control:
    - Add easytag-aac transitional package.
  + debian/install:
    - Install upstream files to easytag binary package.
  + debian/rules:
    - Do not fail on deleting ChangeLog file if it doesn't exist.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 * ALBUM        : The collection name to which this track belongs
67
67
 * TRACKNUMBER  : The track number of this piece if part of a specific larger collection or album
68
68
 * ARTIST       : The artist generally considered responsible for the work. In popular music this is usually the performing band or singer. For classical music it would be the composer. For an audio book it would be the author of the original text.
 
69
 * ALBUMARTIST  : The compilation artist or overall artist of an album
69
70
 * PERFORMER    : The artist(s) who performed the work. In classical music this would be the conductor, orchestra, soloists. In an audio book it would be the actor who did the reading. In popular music this is typically the same as the ARTIST and is omitted.
70
71
 * COPYRIGHT    : Copyright attribution, e.g., '2001 Nobody's Band' or '1999 Jack Moffitt'
71
72
 * LICENSE      : License information, eg, 'All Rights Reserved', 'Any Use Permitted', a URL to a license such as a Creative Commons license ("www.creativecommons.org/blahblah/license.html") or the EFF Open Audio License ('distributed under the terms of the Open Audio License. see http://www.eff.org/IP/Open_licenses/eff_oal.html for details'), etc.
240
241
        g_free(string);
241
242
    }
242
243
 
 
244
    /****************
 
245
     * Album Artist *
 
246
     ****************/
 
247
    field_num = 0;
 
248
    while ( (string = vorbis_comment_query(vc,"ALBUMARTIST",field_num++)) != NULL )
 
249
    {
 
250
        string = Try_To_Validate_Utf8_String(string);
 
251
 
 
252
        if ( g_utf8_strlen(string, -1) > 0 )
 
253
        {
 
254
            if (FileTag->album_artist==NULL)
 
255
                FileTag->album_artist = g_strdup(string);
 
256
            else
 
257
                FileTag->album_artist = g_strconcat(FileTag->album_artist,MULTIFIELD_SEPARATOR,string,NULL);
 
258
        }
 
259
 
 
260
        g_free(string);
 
261
    }
 
262
 
243
263
    /*********
244
264
     * Album *
245
265
     *********/
535
555
    {
536
556
        if ( strncasecmp(vc->user_comments[i],"TITLE=",            6) != 0
537
557
          && strncasecmp(vc->user_comments[i],"ARTIST=",           7) != 0
 
558
          && strncasecmp(vc->user_comments[i],"ALBUMARTIST=",     12) != 0
538
559
          && strncasecmp(vc->user_comments[i],"ALBUM=",            6) != 0
539
560
          && strncasecmp(vc->user_comments[i],"DISCNUMBER=",      11) != 0
540
561
          && strncasecmp(vc->user_comments[i],"DATE=",             5) != 0
683
704
        Ogg_Write_Delimetered_Tag(vc,"ARTIST=",FileTag->artist);
684
705
    }
685
706
 
 
707
    /****************
 
708
     * Album Artist *
 
709
     ****************/
 
710
    if ( FileTag->album_artist )
 
711
    {
 
712
        Ogg_Write_Delimetered_Tag(vc,"ALBUMARTIST=",FileTag->album_artist);
 
713
    }
 
714
 
686
715
    /*********
687
716
     * Album *
688
717
     *********/