# Path: chirp/common/conf.py

# 
# Path: chirp/library/database.py
# def _insert(target, table_name, insert_tuple):
# def _insert_tags(conn, fingerprint, timestamp, mutagen_id3):
# def _get_tags(conn, au_file, cutoff_timestamp):
# def _audio_file_generator(conn, sql):
#     def __init__(self, name):
#     def _get_connection(self):
#     def create_tables(self):
#     def get_all(self):
#     def get_all_imports(self):
#     def get_by_import(self, vol, import_timestamp):
#     def get_by_fingerprint(self, fingerprint):
#     def begin_add(self, volume, import_timestamp):
#     def update(self, au_file, timestamp):
#     def __init__(self, volume, import_timestamp, conn):
#     def add(self, au_file):
#     def commit(self):
#     def revert(self):
# class Database(object):
# class _AddTransaction(object):


import pprint
import sys
import sqlite3
import argparse
from chirp.common.conf import LIBRARY_DB
from chirp.library import database
#!/usr/bin/env python
"""
Remove audio files and their M3U tags based on a fingerprints id given
Usage:

    See what will be deleted:
    do_delete_audio_file_from_db <fingerprint_id> <fingerprint_id>

    Actually delete:
    do_delete_audio_file_from_db <fingerprint_id> <fingerprint_id> --delete

Flags:
 --db = specify a filesystem path to an alternate location for the sqlite
        database file
 --delete = actually do the delete. Nothing will be deleted without this flag.

"""



class AudioFileManager(object):

    def __init__(self, library_db_file=None):
        if not library_db_file:

# Path: chirp/common/conf.py

# 
# Path: chirp/library/database.py
# def _insert(target, table_name, insert_tuple):
# def _insert_tags(conn, fingerprint, timestamp, mutagen_id3):
# def _get_tags(conn, au_file, cutoff_timestamp):
# def _audio_file_generator(conn, sql):
#     def __init__(self, name):
#     def _get_connection(self):
#     def create_tables(self):
#     def get_all(self):
#     def get_all_imports(self):
#     def get_by_import(self, vol, import_timestamp):
#     def get_by_fingerprint(self, fingerprint):
#     def begin_add(self, volume, import_timestamp):
#     def update(self, au_file, timestamp):
#     def __init__(self, volume, import_timestamp, conn):
#     def add(self, au_file):
#     def commit(self):
#     def revert(self):
# class Database(object):
# class _AddTransaction(object):


# Path: chirp/library/do_delete_audio_file_from_db.py
import pprint
import sys
import sqlite3
import argparse
from chirp.common.conf import LIBRARY_DB
from chirp.library import database

#!/usr/bin/env python
"""
Remove audio files and their M3U tags based on a fingerprints id given
Usage:

    See what will be deleted:
    do_delete_audio_file_from_db <fingerprint_id> <fingerprint_id>

    Actually delete:
    do_delete_audio_file_from_db <fingerprint_id> <fingerprint_id> --delete

Flags:
 --db = specify a filesystem path to an alternate location for the sqlite
        database file
 --delete = actually do the delete. Nothing will be deleted without this flag.

"""



class AudioFileManager(object):

    def __init__(self, library_db_file=None):
        if not library_db_file:

            library_db_file = LIBRARY_DB