Update of /cvsroot/freevo/freevo/src/video/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv9852/src/video/plugins

Modified Files:
        imdb.py 
Log Message:
remove 'the' and 'a' from the imdb search string (add more in local_conf.py 
if you like) because they mess up the results. Also fixed the filename 
included in the fxd


Index: imdb.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/video/plugins/imdb.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** imdb.py     24 Jun 2003 18:39:42 -0000      1.10
--- imdb.py     26 Jun 2003 13:23:21 -0000      1.11
***************
*** 16,19 ****
--- 16,24 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.11  2003/06/26 13:23:21  dischi
+ # remove 'the' and 'a' from the imdb search string (add more in local_conf.py
+ # if you like) because they mess up the results. Also fixed the filename
+ # included in the fxd
+ #
  # Revision 1.10  2003/06/24 18:39:42  dischi
  # some small fixes
***************
*** 68,72 ****
  
  
- remove_from_label = ('season[\._ -][0-9]+', 'disc[\._ -][0-9]+')
  
  class PluginInterface(plugin.ItemPlugin):
--- 73,76 ----
***************
*** 79,83 ****
          name  = re.sub('([0-9])([a-zA-Z])', point_maker, name.lower())
  
!         for r in remove_from_label:
              name  = re.sub(r, '', name)
  
--- 83,87 ----
          name  = re.sub('([0-9])([a-zA-Z])', point_maker, name.lower())
  
!         for r in config.IMDB_REMOVE_FROM_LABEL:
              name  = re.sub(r, '', name)
  
***************
*** 179,184 ****
          name = ''
          for p in parts:
!             name += '%s ' % p
!         
          items = []
          for id,name,year,type in helpers.imdb.search(name):
--- 183,189 ----
          name = ''
          for p in parts:
!             if not p.lower() in config.IMDB_REMOVE_FROM_SEARCHSTRING:
!                 name += '%s ' % p
! 
          items = []
          for id,name,year,type in helpers.imdb.search(name):
***************
*** 215,219 ****
          filename = os.path.splitext(self.item.filename)[0]
          helpers.imdb.get_data_and_write_fxd(arg[0], filename, None, None,
!                                             (self.item.filename, ), None)
  
          # check if we have to go one menu back (called directly) or
--- 220,224 ----
          filename = os.path.splitext(self.item.filename)[0]
          helpers.imdb.get_data_and_write_fxd(arg[0], filename, None, None,
!                                             (os.path.basename(self.item.filename), 
), None)
  
          # check if we have to go one menu back (called directly) or




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to