Skip to content

Commit

Permalink
Add comments with resource links [#19]
Browse files Browse the repository at this point in the history
  • Loading branch information
thebigmunch committed Feb 17, 2020
1 parent b4d40f1 commit a7635ea
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio_metadata/formats/flac.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# https://xiph.org/flac/format.html

__all__ = [
'FLAC',
'FLACApplication',
Expand Down
2 changes: 2 additions & 0 deletions src/audio_metadata/formats/id3v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# http://id3.org/ID3v1

__all__ = [
'ID3v1',
'ID3v1Fields',
Expand Down
2 changes: 2 additions & 0 deletions src/audio_metadata/formats/id3v2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# http://id3.org/Developer%20Information

__all__ = [
'ID3v2',
'ID3v2Flags',
Expand Down
2 changes: 2 additions & 0 deletions src/audio_metadata/formats/id3v2_frames.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# http://id3.org/Developer%20Information

__all__ = [
'ID3v2BaseFrame',
'ID3v2CommentFrame',
Expand Down
3 changes: 3 additions & 0 deletions src/audio_metadata/formats/mp3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# https://www.mp3-tech.org/programmer/frame_header.html
# http://gabriel.mp3-tech.org/mp3infotag.html

__all__ = [
'LAMEEncodingFlags',
'LAMEHeader',
Expand Down
6 changes: 6 additions & 0 deletions src/audio_metadata/formats/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __repr__(self):
return f'<{self.__class__.__name__}.{self.name}>'


# https://xiph.org/flac/format.html#metadata_block_header
class FLACMetadataBlockType(_BaseIntEnum):
STREAMINFO = 0
PADDING = 1
Expand All @@ -43,6 +44,7 @@ class FLACMetadataBlockType(_BaseIntEnum):
PICTURE = 6


# http://id3.org/id3v2.3.0#Attached_picture
class ID3PictureType(_BaseIntEnum):
OTHER = 0
FILE_ICON = 1
Expand Down Expand Up @@ -77,6 +79,7 @@ class ID3Version(_BaseEnum):
v24 = (2, 4)


# https://en.wikipedia.org/wiki/List_of_ID3v1_Genres
ID3v1Genres = [
'Blues',
'Classic Rock',
Expand Down Expand Up @@ -273,6 +276,7 @@ class ID3Version(_BaseEnum):


ID3v2FrameIDs = {
# http://id3.org/id3v2-00
ID3Version.v22: {
'BUF', 'CNT', 'COM', 'CRA', 'CRM', 'ETC', 'EQU', 'IPL',
'LNK', 'MCI', 'MLL', 'PIC', 'POP', 'REV', 'RVA', 'SLT',
Expand All @@ -283,6 +287,7 @@ class ID3Version(_BaseEnum):
'TT2', 'TT3', 'TXT', 'TXX', 'TYE', 'UFI', 'ULT', 'WAF',
'WAR', 'WAS', 'WCM', 'WCP', 'WPB', 'WXX',
},
# http://id3.org/id3v2.3.0#Declared_ID3v2_frames
ID3Version.v23: {
'AENC', 'APIC', 'COMM', 'COMR', 'ENCR', 'EQUA', 'ETCO',
'GEOB', 'GRID', 'IPLS', 'LINK', 'MCDI', 'MLLT', 'OWNE',
Expand All @@ -296,6 +301,7 @@ class ID3Version(_BaseEnum):
'USER', 'USLT', 'WCOM', 'WCOP', 'WOAF', 'WOAR', 'WOAS',
'WORS', 'WPAY', 'WPUB', 'WXXX',
},
# http://id3.org/id3v2.4.0-frames
ID3Version.v24: {
'AENC', 'APIC', 'ASPI', 'COMM', 'COMR', 'ENCR', 'EQU2',
'ETCO', 'GEOB', 'GRID', 'LINK', 'MCDI', 'MLLT', 'OWNE',
Expand Down
2 changes: 2 additions & 0 deletions src/audio_metadata/formats/vorbis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# https://xiph.org/vorbis/doc/v-comment.html

__all__ = [
'VorbisComment',
'VorbisComments',
Expand Down
4 changes: 4 additions & 0 deletions src/audio_metadata/formats/wav.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# http://soundfile.sapp.org/doc/WaveFormat/
# http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html

__all__ = [
'RIFFTags',
'WAV',
Expand Down Expand Up @@ -27,6 +30,7 @@
from ..utils import datareader


# https://www.recordingblogs.com/wiki/list-chunk-of-a-wave-file
class RIFFTags(Tags):
FIELD_MAP = frozenbidict(
{
Expand Down

0 comments on commit a7635ea

Please sign in to comment.