Zachwojtz / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 0 forks source link

Patch for syfy.py to fix Mercury Men #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Mercury Men doesn't work because it doesn't list a Season for it's episodes. 

What is the expected output? What do you see instead?

Errors in the logs and blooping message in the graphical thingie.

What version of the product are you using? On what operating system?
Latest bluecop-xbmc-repo with Dharma and nightly

Please provide any additional information below.

Here's a patch:

--- syfy.py 2011-10-12 22:44:45.238156528 -0400
+++ /home/rdrake/syfy.py    2011-10-12 22:45:25.967158390 -0400
@@ -58,6 +58,9 @@
             elif 4 == len(seasonepisode):
                 season = int(seasonepisode[:2])
                 episode = int(seasonepisode[-2:])
+       elif 2 == len(seasonepisode) or 1 == len(seasonepisode):
+       season = 0
+       episode = int(seasonepisode)
             if season <> 0 or episode <> 0:
                 displayname = '%sx%s - %s' % (str(season),str(episode),name)
         except:

This may fix other web shows or it might break other things.  YMMV.  Also, for 
users I want to point out that this only fixes the episode displays.  The 
nightly XBMC is still required for the rtmp stream to work.

Original issue reported on code.google.com by rfdr...@gmail.com on 13 Oct 2011 at 2:51

GoogleCodeExporter commented 8 years ago
I believe this was fixed in a different and more elegant way.  I don't fully 
understand how the code works now but it works, and doesn't need this patch.

Original comment by rfdr...@gmail.com on 18 Feb 2012 at 10:07