Module ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareEq Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num Str body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr BinOpMod Str NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num Num Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Assign NameStore ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad Expr Call AttributeLoad NameLoad attr ListComp NameLoad comprehension NameStore NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore ListComp NameLoad comprehension NameStore NameLoad UnaryOpNot Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Raise Call NameLoad Str AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index NameLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr Assign NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Index Num If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Str For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad orelse Assign NameStore BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr UnaryOpNot CompareIn NameLoad ListLoad Str Str body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore NameLoad Assign NameStore Str Assign NameStore Call NameLoad NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad Str NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Str Return BinOpMod Str TupleLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad TryExcept body With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr If CompareIsNot NameLoad Str body Assign NameStore BinOpMod Str NameLoad AugAssignAdd NameStore BinOpMod Str TupleLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If NameLoad body Assign NameStore Call NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad TryExcept body Assign NameStore Str If CompareEq NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore BinOpAdd NameLoad BinOpMod Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str keyword Dict Str NameLoad If CompareEq SubscriptLoad NameLoad Index Str Str body With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad decorator_list
N/A urllib FancyURLopener N/A os N/A re N/A sys N/A logging unicodedata normalize discogsalbum DiscogsAlbum TrackContainer discogsauth DiscogsAuth USER_AGENT N/A N/A reload sys N/A N/A N/A sys setdefaultencoding utf-8 N/A logger N/A N/A logging getLogger __name__ TagOpener N/A FancyURLopener object N/A N/A version USER_AGENT __init__ N/A N/A self N/A N/A N/A N/A N/A FancyURLopener __init__ self N/A N/A TaggerUtils N/A object N/A N/A  Accepts a destination directory name and discogs release id.
        TaggerUtils returns a the corresponding metadata information , in which
        we can write to disk. The assumption here is that the destination
        direcory contains a single album in a support format (mp3 or flac).

        The class also provides a few methods that create supplimental files,
        relvant to a given album (m3u, nfo file and album art grabber.) N/A FILE_TYPE N/A .mp3 .flac __init__ N/A N/A self sourcedir destdir use_lower ogsrelid split_artists split_genres_and_styles copy_other_files char_exceptions N/A N/A N/A N/A self group_name jW N/A N/A self dir_format %ALBARTIST%-%ALBTITLE%-(%CATNO%)-%YEAR%-%GROUP% N/A N/A self m3u_format 00-%ALBARTIST%-%ALBTITLE%.m3u N/A N/A self nfo_format 00-%ALBARTIST%-%ALBTITLE%.nfo N/A N/A self song_format %TRACKNO%-%ARTIST%-%TITLE%%TYPE% N/A N/A self va_song_format %TRACKNO%-%ARTIST%-%TITLE%%TYPE% N/A N/A self images_format 00-image N/A N/A self first_image_name folder.jpg N/A N/A self copy_other_files copy_other_files N/A N/A self char_exceptions char_exceptions N/A N/A self sourcedir sourcedir N/A N/A self destdir destdir N/A result N/A N/A self _get_target_list N/A N/A self files_to_tag N/A result N/A target_list N/A N/A self copy_other_files N/A N/A N/A self copy_files N/A result N/A copy_files N/A N/A self album N/A DiscogsAlbum ogsrelid split_artists split_genres_and_styles N/A N/A self use_lower use_lower N/A N/A N/A len N/A self files_to_tag N/A len N/A N/A self album tracks N/A N/A N/A self tag_map N/A N/A self _get_tag_map N/A N/A N/A self tag_map False N/A _value_from_tag_format N/A N/A self format trackno position filetype N/A 1 1 .mp3 N/A N/A  Fill in the used variables using the track information  N/A N/A N/A logger debug N/A parameters given: format: %s format N/A N/A N/A logger debug N/A parameters given: trackno: %d trackno N/A N/A N/A logger debug N/A parameters given: position: %d position N/A N/A N/A logger debug N/A paramerter avail: position: %d N/A len N/A N/A self album tracks N/A property_map N/A %ALBTITLE% %ALBARTIST% %YEAR% %CATNO% %GENRE% %STYLE% %GROUP% %ARTIST% %TITLE% %DISCNO% %TRACKNO% %TYPE% %LABEL% N/A N/A self album title N/A N/A self album artist N/A N/A self album year N/A N/A self album catno N/A N/A self album genre N/A N/A self album style N/A self group_name N/A N/A N/A N/A self album tracks N/A position artist N/A N/A N/A N/A self album tracks N/A position title N/A N/A N/A N/A self album tracks N/A position discnumber N/A %.2d trackno filetype N/A N/A self album label N/A hashtag N/A N/A property_map keys N/A N/A format N/A N/A format replace hashtag N/A str N/A property_map N/A hashtag N/A N/A N/A logger debug N/A format output: %s format N/A format N/A _value_from_tag N/A N/A self format trackno position filetype N/A 1 1 .mp3 N/A N/A  Generates the filename tagging map  N/A format N/A N/A self _value_from_tag_format format trackno position filetype N/A N/A self use_lower N/A N/A format N/A N/A format lower N/A format N/A N/A self _get_clean_filename format N/A N/A N/A logger debug N/A output: %s format N/A format N/A _get_target_list N/A N/A self N/A N/A N/A  fetches a list of files in the self.sourcedir location.  N/A copy_files None N/A N/A N/A dir_list N/A N/A os listdir N/A self sourcedir N/A N/A N/A dir_list sort N/A target_list N/A N/A N/A N/A os path join N/A self sourcedir x N/A x dir_list N/A N/A N/A N/A x lower endswith N/A TaggerUtils FILE_TYPE N/A N/A self copy_other_files N/A N/A copy_files N/A N/A N/A N/A os path join N/A self sourcedir x N/A x dir_list N/A N/A N/A N/A N/A x lower endswith N/A TaggerUtils FILE_TYPE N/A N/A target_list N/A N/A N/A N/A logger debug target_list empty, try to retrieve subfolders N/A y dir_list N/A N/A tmp_list N/A N/A N/A N/A logger debug N/A subfolder: %s y N/A sub_dir N/A N/A N/A os path join N/A self sourcedir y N/A N/A N/A N/A os path isdir sub_dir N/A N/A N/A N/A tmp_list extend N/A N/A os listdir sub_dir N/A N/A N/A tmp_list sort N/A tmp_list N/A N/A N/A N/A os path join sub_dir y N/A y tmp_list N/A N/A N/A target_list extend N/A z N/A z tmp_list N/A N/A N/A N/A z lower endswith N/A TaggerUtils FILE_TYPE N/A N/A self copy_other_files N/A N/A copy_files N/A z N/A z tmp_list N/A N/A N/A N/A N/A z lower endswith N/A TaggerUtils FILE_TYPE N/A N/A N/A OSError N/A e N/A N/A N/A N/A e errno N/A errno EEXIST N/A N/A N/A N/A logger error No such directory '%s' N/A self sourcedir N/A N/A IOError No such directory '%s' N/A self sourcedir N/A N/A N/A IOError N/A General IO system error '%s' N/A errno N/A e N/A N/A target_list copy_files target_list copy_files N/A _get_tag_map N/A N/A self N/A N/A N/A  matches the old with new via TargetTagMap object.  N/A tag_map N/A N/A N/A position filename N/A enumerate N/A self files_to_tag N/A N/A N/A N/A logger debug N/A track position: %d position N/A N/A N/A logger debug N/A mapping file %s --to--> %s - %s N/A filename N/A N/A N/A N/A self album tracks N/A position artist N/A N/A N/A N/A self album tracks N/A position title N/A pos N/A position 1 N/A track N/A N/A N/A self album tracks N/A position N/A N/A track orig_file filename N/A fileext N/A N/A N/A N/A os path splitext filename N/A 1 N/A N/A N/A N/A self album artist Various N/A N/A newfile N/A N/A self _value_from_tag N/A self va_song_format N/A track tracknumber position fileext N/A N/A newfile N/A N/A self _value_from_tag N/A self song_format N/A track tracknumber position fileext N/A N/A track new_file N/A N/A self _get_clean_filename newfile N/A N/A N/A tag_map append track N/A tag_map N/A dest_dir_name N/A N/A self N/A N/A N/A  generates new album directory name  N/A N/A N/A N/A os path isabs N/A self destdir N/A N/A path_name N/A N/A N/A os path normpath N/A self destdir N/A N/A path_name N/A N/A N/A os path dirname N/A N/A N/A os path normpath N/A self destdir N/A dest_dir N/A ddir N/A N/A N/A self dir_format split / N/A N/A d_dir N/A N/A self _get_clean_filename N/A N/A self _value_from_tag ddir N/A N/A dest_dir N/A N/A dest_dir d_dir N/A N/A dest_dir N/A N/A dest_dir / d_dir N/A dir_name N/A N/A N/A os path join path_name dest_dir N/A dir_name N/A property album_folder_name N/A N/A self N/A N/A N/A  returns the album as the name for the sub-dir for multi disc 
            releases N/A folder_name N/A %s%s N/A N/A N/A self _get_clean_filename N/A str N/A N/A self album title N/A self disc_folder_name N/A N/A self use_lower N/A N/A folder_name N/A N/A folder_name lower N/A folder_name N/A property m3u_filename N/A N/A self N/A N/A N/A  generates the m3u file name  N/A m3u N/A N/A self _value_from_tag N/A self m3u_format N/A N/A N/A self _get_clean_filename m3u N/A property nfo_filename N/A N/A self N/A N/A N/A  generates the nfo file name  N/A nfo N/A N/A self _value_from_tag N/A self nfo_format N/A N/A N/A self _get_clean_filename nfo N/A property _get_clean_filename N/A N/A self f N/A N/A N/A  Removes unwanted characters from file names  N/A N/A filename fileext N/A N/A N/A os path splitext f N/A N/A N/A N/A fileext N/A TaggerUtils FILE_TYPE N/A N/A fileext N/A .m3u .nfo N/A N/A N/A N/A logger debug N/A fileext: %s fileext N/A filename f N/A fileext N/A a N/A unicode filename utf-8 N/A N/A k v N/A N/A N/A self char_exceptions iteritems N/A N/A a N/A N/A a replace k v N/A a N/A N/A N/A normalize NFKD a encode ascii ignore N/A cf N/A N/A re compile [^-\w.\(\)_] N/A cf N/A N/A cf sub N/A str a N/A cf N/A N/A cf replace _ N/A cf N/A N/A cf replace __ _ N/A cf N/A N/A cf replace _-_ - N/A N/A %s%s N/A cf fileext N/A N/A write_file N/A N/A filecontents filename N/A N/A N/A  writes a string of data to disk  N/A N/A N/A N/A N/A os path exists N/A N/A N/A os path dirname filename N/A N/A N/A N/A os makedirs N/A N/A N/A os path dirname filename N/A N/A N/A logger debug N/A Writing file '%s' to disk filename N/A N/A N/A N/A open filename w fh N/A N/A N/A N/A fh write filecontents N/A N/A N/A IOError N/A N/A N/A N/A logger error N/A Unable to write file '%s' filename N/A True N/A create_nfo N/A N/A nfo dest_dir nfo_file N/A N/A N/A  Writes the .nfo file to disk.  N/A N/A write_file nfo N/A N/A N/A os path join dest_dir nfo_file N/A create_m3u N/A N/A tag_map folder_names dest_dir_name m3u_filename N/A N/A N/A  Generates the playlist for the given albm.
        Adhering to the following m3u format.

        ---
        #EXTM3U
        #EXTINF:233,Artist - Song
        directoryile_name.mp3.mp3
        #EXTINF:-1,My Cool Stream
        http://www.site.com:8000/listen.pls
        ---

        Taken from http://forums.winamp.com/showthread.php?s=&threadid=65772 N/A m3u #EXTM3U
 N/A track tag_map N/A N/A m3u N/A #EXTINF:-1,%s - %s
 N/A N/A track artist N/A track title N/A folder_name N/A folder_names N/A N/A track discnumber N/A N/A folder_name N/A N/A folder_name N/A %s/ folder_name N/A m3u N/A %s%s
 N/A folder_name N/A track new_file N/A N/A write_file m3u N/A N/A N/A os path join dest_dir_name m3u_filename N/A get_images N/A N/A images dest_dir_name images_format first_image_name N/A N/A N/A  Download and store any available images  N/A images N/A N/A discogs_auth N/A DiscogsAuth N/A N/A i image N/A enumerate images 0 N/A N/A N/A N/A logger debug N/A N/A Downloading image "{0}" format image N/A N/A N/A picture_name N/A N/A i 0 N/A N/A picture_name first_image_name N/A N/A picture_name N/A images_format N/A -%.2d.jpg i N/A N/A resp content N/A N/A N/A discogs_auth handle request image POST headers N/A user-agent USER_AGENT N/A N/A N/A resp N/A status 200 N/A N/A N/A open N/A N/A N/A os path join dest_dir_name picture_name w fh N/A N/A N/A N/A fh write content N/A N/A N/A Exception N/A e N/A N/A N/A N/A logger error N/A N/A Unable to download image '{0}', skipping. Error: {1} format image e N/A