def __init__(self, database, locations, parent_window, search_conditions,
              config):
     XmlExportBase.__init__(self, database, locations, parent_window,
                            search_conditions, config)
     self.config_section = 'export-dvdprofilerxml'
     self.export_name = 'DVD Profiler XML Export V2'
     self.filename = 'CollectionV2.xml'
 def export_to_document(self, document, mainelement):
     collelement = document.createElement('Collection')
     document.appendChild(collelement)
     comment = document.createComment(
         'Griffith Export in DVD Profiler Collection Export Format V2')
     document.insertBefore(comment, collelement)
     XmlExportBase.export_to_document(self, document, collelement)
 def export_to_document(self, document, mainelement):
     collelement = document.createElement('collection')
     collelement.setAttribute('type', 'GCfilms')
     document.appendChild(collelement)
     comment = document.createComment('Griffith Export in GCstar database format')
     document.insertBefore(comment, collelement)
     XmlExportBase.export_to_document(self, document, collelement)
     collelement.setAttribute('items', str(self.exported_movies))
 def __init__(self, database, locations, parent_window, search_conditions, config):
     XmlExportBase.__init__(self, database, locations, parent_window, search_conditions, config)
     self.config_section = 'export-gcstar'
     self.export_name    = 'GCstar database export'
     self.filename       = 'gcstar.gcs'
     self.encoding       = 'utf-8'
     self.true_value     = '1'
     self.false_value    = '0'
示例#5
0
 def export_to_document(self, document, mainelement):
     collelement = document.createElement('collection')
     collelement.setAttribute('type', 'GCfilms')
     document.appendChild(collelement)
     comment = document.createComment(
         'Griffith Export in GCstar database format')
     document.insertBefore(comment, collelement)
     XmlExportBase.export_to_document(self, document, collelement)
     collelement.setAttribute('items', str(self.exported_movies))
示例#6
0
 def __init__(self, database, locations, parent_window, search_conditions,
              config):
     XmlExportBase.__init__(self, database, locations, parent_window,
                            search_conditions, config)
     self.config_section = 'export-gcstar'
     self.export_name = 'GCstar database export'
     self.filename = 'gcstar.gcs'
     self.encoding = 'utf-8'
     self.true_value = '1'
     self.false_value = '0'
 def process_movie(self, document, mainelement, movie, keys):
     # create node
     dvdelement = document.createElement('DVD')
     mainelement.appendChild(dvdelement)
     tmpelem = document.createElement('ProfileTimestamp')
     dvdelement.appendChild(tmpelem)
     tmpelem = document.createElement('ID')
     dvdelement.appendChild(tmpelem)
     tmpelem = document.createElement('UPC')
     dvdelement.appendChild(tmpelem)
     XmlExportBase.process_movie(self, document, dvdelement, movie, keys)
 def process_movie(self, document, mainelement, movie, keys):
     # create node
     dvdelement = document.createElement('DVD')
     mainelement.appendChild(dvdelement)
     tmpelem = document.createElement('ProfileTimestamp')
     dvdelement.appendChild(tmpelem)
     tmpelem = document.createElement('ID')
     dvdelement.appendChild(tmpelem)
     tmpelem = document.createElement('UPC')
     dvdelement.appendChild(tmpelem)
     XmlExportBase.process_movie(self, document, dvdelement, movie, keys)
示例#9
0
 def export_to_document(self, document, mainelement):
     collelement = document.createElement('AntMovieCatalog')
     collelement.setAttribute('Format', '35')
     collelement.setAttribute('Version', '3.5.1 (2007-09-22)')
     collelement.setAttribute('Date', datetime.datetime.now().strftime('%d.%m.%Y %H:%M:%S'))
     document.appendChild(collelement)
     comment = document.createComment('Griffith Export in Ant Movie Catalog database format')
     document.insertBefore(comment, collelement)
     catalogelement = document.createElement('Catalog')
     collelement.appendChild(catalogelement)
     propertieselement = document.createElement('Properties')
     catalogelement.appendChild(propertieselement)
     contentselement = document.createElement('Contents')
     catalogelement.appendChild(contentselement)
     XmlExportBase.export_to_document(self, document, contentselement)
 def export_to_document(self, document, mainelement):
     collelement = document.createElement("AntMovieCatalog")
     collelement.setAttribute("Format", "35")
     collelement.setAttribute("Version", "3.5.1 (2007-09-22)")
     collelement.setAttribute("Date", datetime.datetime.now().strftime("%d.%m.%Y %H:%M:%S"))
     document.appendChild(collelement)
     comment = document.createComment("Griffith Export in Ant Movie Catalog database format")
     document.insertBefore(comment, collelement)
     catalogelement = document.createElement("Catalog")
     collelement.appendChild(catalogelement)
     propertieselement = document.createElement("Properties")
     catalogelement.appendChild(propertieselement)
     contentselement = document.createElement("Contents")
     catalogelement.appendChild(contentselement)
     XmlExportBase.export_to_document(self, document, contentselement)
示例#11
0
 def process_movie(self, document, mainelement, movie, keys):
     # create node
     itemelement = document.createElement('item')
     itemelement.setAttribute('id', '')
     itemelement.setAttribute('title', '')
     itemelement.setAttribute('date', '')
     itemelement.setAttribute('time', '')
     itemelement.setAttribute('director', '')
     itemelement.setAttribute('country', '')
     itemelement.setAttribute('genre', '')
     itemelement.setAttribute('image', '')
     itemelement.setAttribute('actors', '')
     itemelement.setAttribute('original', '')
     itemelement.setAttribute('webPage', '')
     itemelement.setAttribute('seen', '')
     itemelement.setAttribute('added', '')
     itemelement.setAttribute('format', '')
     itemelement.setAttribute('number', '')
     itemelement.setAttribute('identifier', '')
     itemelement.setAttribute('place', '')
     itemelement.setAttribute('rating', '')
     itemelement.setAttribute('audio', '')
     itemelement.setAttribute('subt', '')
     itemelement.setAttribute('age', '')
     itemelement.setAttribute('video', '')
     itemelement.setAttribute('serie', '')
     itemelement.setAttribute('rank', '')
     itemelement.setAttribute('trailer', '')
     itemelement.setAttribute('borrower', '')
     itemelement.setAttribute('lendDate', '')
     itemelement.setAttribute('borrowings', '')
     itemelement.setAttribute('favourite', '')
     itemelement.setAttribute('tags', '')
     mainelement.appendChild(itemelement)
     XmlExportBase.process_movie(self, document, itemelement, movie, keys)
     if not itemelement.getAttribute('title'):
         itemelement.setAttribute('title',
                                  itemelement.getAttribute('original'))
 def process_movie(self, document, mainelement, movie, keys):
     # create node
     itemelement = document.createElement('item')
     itemelement.setAttribute('id', '')
     itemelement.setAttribute('title', '')
     itemelement.setAttribute('date', '')
     itemelement.setAttribute('time', '')
     itemelement.setAttribute('director', '')
     itemelement.setAttribute('country', '')
     itemelement.setAttribute('genre', '')
     itemelement.setAttribute('image', '')
     itemelement.setAttribute('actors', '')
     itemelement.setAttribute('original', '')
     itemelement.setAttribute('webPage', '')
     itemelement.setAttribute('seen', '')
     itemelement.setAttribute('added', '')
     itemelement.setAttribute('format', '')
     itemelement.setAttribute('number', '')
     itemelement.setAttribute('identifier', '')
     itemelement.setAttribute('place', '')
     itemelement.setAttribute('rating', '')
     itemelement.setAttribute('audio', '')
     itemelement.setAttribute('subt', '')
     itemelement.setAttribute('age', '')
     itemelement.setAttribute('video', '')
     itemelement.setAttribute('serie', '')
     itemelement.setAttribute('rank', '')
     itemelement.setAttribute('trailer', '')
     itemelement.setAttribute('borrower', '')
     itemelement.setAttribute('lendDate', '')
     itemelement.setAttribute('borrowings', '')
     itemelement.setAttribute('favourite', '')
     itemelement.setAttribute('tags', '')
     mainelement.appendChild(itemelement)
     XmlExportBase.process_movie(self, document, itemelement, movie, keys)
     if not itemelement.getAttribute('title'):
         itemelement.setAttribute('title', itemelement.getAttribute('original'))
 def export_to_document(self, document, mainelement):
     collelement = document.createElement('Collection')
     document.appendChild(collelement)
     comment = document.createComment('Griffith Export in DVD Profiler Collection Export Format V2')
     document.insertBefore(comment, collelement)
     XmlExportBase.export_to_document(self, document, collelement)
 def __init__(self, database, locations, parent_window, search_conditions, config):
     XmlExportBase.__init__(self, database, locations, parent_window, search_conditions, config)
     self.config_section = 'export-dvdprofilerxml'
     self.export_name    = 'DVD Profiler XML Export V2'
     self.filename       = 'CollectionV2.xml'
示例#15
0
 def process_movie(self, document, mainelement, movie, keys):
     # create node
     itemelement = document.createElement('Movie')
     itemelement.setAttribute('Checked', 'False')
     mainelement.appendChild(itemelement)
     XmlExportBase.process_movie(self, document, itemelement, movie, keys)
示例#16
0
 def __init__(self, database, locations, parent_window, search_conditions, config):
     XmlExportBase.__init__(self, database, locations, parent_window, search_conditions, config)
     self.config_section = 'export-antmovie'
     self.export_name    = 'Ant Movie Catalog database export'
     self.filename       = 'ant-movie-catalog.xml'
     self.encoding       = 'iso-8859-1'