# Path: chirp/common/conf.py

# 
# Path: chirp/library/album.py
# class AlbumError(Exception):
# class Album(object):
# def _compute_album_id(all_au_files):
# def _standardize_tags(all_au_files, new_album_name=None):
#     def __init__(self, all_au_files):
#     def _sort(self):
#     def standardize(self, new_album_name=None):
#     def set_volume_and_import_timestamp(self, vol, imp_ts):
#     def drop_payloads(self):
#     def ensure_payloads(self):
#     def title(self):
#     def tags(self):
#     def _get_tpe1_breakdown(self):
#     def is_compilation(self):
#     def artist_name(self):
#     def all_artist_names():
#     def import_timestamp(self):
#     def __str__(self):
# def from_directory(dirpath, fast=False):
# 
# Path: chirp/library/audio_file.py
# class AudioFile(object):
#     def __eq__(self, other):
#         def _mutagen_id3_set(obj):
#     def has_ufid(self):
#     def ufid(self):
#     def ufid_tag(self):
#     def tpe1(self):
#     def talb(self):
#     def tit2(self):
#     def canonical_directory(self, prefix=""):
#     def canonical_filename(self):
#     def canonical_path(self, prefix=""):
# def _get_mp3(path):
# def _tag_to_int(au_file, tag_key):
# def scan_fast(path, _read_id3_hook=None):
# def scan(path, _read_id3_hook=None):


import logging
import os
from chirp.common import conf
from chirp.library import album
from chirp.library import audio_file



class Dropbox(object):

    def __init__(self, dropbox_path=None):
        dropbox_path = dropbox_path or conf.MUSIC_DROPBOX
        self._path = dropbox_path
        self._dirs = {}
        self._all_files = []
        # Scan the path and remember all of the subdirectories and
        # the MP3 files that they cotain.
        for basename in os.listdir(dropbox_path):
            child_path = os.path.join(dropbox_path, basename)
            if os.path.isdir(child_path):
                mp3_names = []

# Path: chirp/common/conf.py

# 
# Path: chirp/library/album.py
# class AlbumError(Exception):
# class Album(object):
# def _compute_album_id(all_au_files):
# def _standardize_tags(all_au_files, new_album_name=None):
#     def __init__(self, all_au_files):
#     def _sort(self):
#     def standardize(self, new_album_name=None):
#     def set_volume_and_import_timestamp(self, vol, imp_ts):
#     def drop_payloads(self):
#     def ensure_payloads(self):
#     def title(self):
#     def tags(self):
#     def _get_tpe1_breakdown(self):
#     def is_compilation(self):
#     def artist_name(self):
#     def all_artist_names():
#     def import_timestamp(self):
#     def __str__(self):
# def from_directory(dirpath, fast=False):
# 
# Path: chirp/library/audio_file.py
# class AudioFile(object):
#     def __eq__(self, other):
#         def _mutagen_id3_set(obj):
#     def has_ufid(self):
#     def ufid(self):
#     def ufid_tag(self):
#     def tpe1(self):
#     def talb(self):
#     def tit2(self):
#     def canonical_directory(self, prefix=""):
#     def canonical_filename(self):
#     def canonical_path(self, prefix=""):
# def _get_mp3(path):
# def _tag_to_int(au_file, tag_key):
# def scan_fast(path, _read_id3_hook=None):
# def scan(path, _read_id3_hook=None):


# Path: chirp/library/dropbox.py
import logging
import os
from chirp.common import conf
from chirp.library import album
from chirp.library import audio_file




class Dropbox(object):

    def __init__(self, dropbox_path=None):
        dropbox_path = dropbox_path or conf.MUSIC_DROPBOX
        self._path = dropbox_path
        self._dirs = {}
        self._all_files = []
        # Scan the path and remember all of the subdirectories and
        # the MP3 files that they cotain.
        for basename in os.listdir(dropbox_path):
            child_path = os.path.join(dropbox_path, basename)
            if os.path.isdir(child_path):
                mp3_names = []

                for name in os.listdir(child_path):