2014-09-10, 02:10
Hi Luna,
That would be awesome, sure would make my life easier . I will say again though that I'm sure the video thumbnail stuff might be a bit to hacky for you and I totally understand that, but maybe it will give you some insight on a better method.
Blip.TV RSS Feed Description Fix (All changes base on is based on 0.4.7):
Original ChannelList.py Starting at line 2620
Change:
Time Fix:
Original ChannelList.py Line 2643
Change:
Video Thumbnail "fix"
Original ChannelList.py Line 2702
Change:
Original Artdownloader.py Line 248
Change
Original List 565:
Change:
Let me know if it's just easier to send you the files with the updates in them.
That would be awesome, sure would make my life easier . I will say again though that I'm sure the video thumbnail stuff might be a bit to hacky for you and I totally understand that, but maybe it will give you some insight on a better method.
Blip.TV RSS Feed Description Fix (All changes base on is based on 0.4.7):
Original ChannelList.py Starting at line 2620
PHP Code:
if not '<p>' in feed.entries[i].summary_detail.value:
epdesc = feed.entries[i]['summary_detail']['value']
head, sep, tail = epdesc.partition('<div class="feedflare">')
epdesc = head
else:
epdesc = feed.entries[i]['subtitle']
if epdesc == '':
epdesc = eptitle
try:
epdesc = (self.trim(epdesc, 350, '...'))
except Exception,e:
self.log("epdesc Trim failed" + str(e))
epdesc = (epdesc[:350])
Change:
PHP Code:
if not '<p>' in feed.entries[i].summary_detail.value:
epdesc = feed.entries[i]['summary_detail']['value']
head, sep, tail = epdesc.partition('<div class="feedflare">')
epdesc = head
else:
epdesc = feed.entries[i]['subtitle']
if epdesc == '':
epdesc = feed.entries[i]['blip_puredescription']
if epdesc == '':
epdesc = eptitle
try:
epdesc = uni(self.trim(epdesc.replace('\n', '').replace('<br />', '\n').replace(''','').replace('"','"'), 500, '...'))
except Exception,e:
self.log("epdesc Trim failed" + str(e))
epdesc = (epdesc[:350])
Time Fix:
Original ChannelList.py Line 2643
PHP Code:
try:
runtimex = feed.entries[i]['itunes_duration']
except Exception,e:
runtimex = 1350
pass
PHP Code:
try:
runtimex = feed.entries[i]['itunes_duration']
except Exception,e:
runtimex = ''
pass
try:
if runtimex == '':
runtimex = feed.entries[i]['blip_runtime']
except Exception,e:
runtimex = ''
pass
if runtimex == '':
runtimex = 1350
Video Thumbnail "fix"
Original ChannelList.py Line 2702
PHP Code:
tmpstr = str(duration) + ',' + eptitle + "//" + "RSS - " + showtitle + "//" + epdesc + "//" + genre + "////" + LiveID + '\n' + url
Change:
PHP Code:
tmpstr = str(duration) + ',' + eptitle + "//" + "RSS - " + showtitle + "//" + epdesc + "//" + genre + "//" + thumburl + "////" + LiveID + '\n' + url
Original Artdownloader.py Line 248
PHP Code:
if mediapath[0:15] == 'plugin://plugin':
Change
PHP Code:
if type.replace('////tvshow','')[-4:] in ('.jpg','.png'):
setImage = 'http://' + type.replace('////tvshow','')
elif mediapath[0:15] == 'plugin://plugin':
Original List 565:
PHP Code:
if line[0:7] == '#EXTINF':
try:
TV_liveid = (line.split('tvshow|')[1])
TV_liveid = 'tvshow|' + TV_liveid
type = (TV_liveid.split('|'))[0]
id = (TV_liveid.split('|'))[1]
except Exception,e:
MO_liveid = line.split('movie|')[1]
MO_liveid = 'movie|' + MO_liveid
type = MO_liveid.split('|')[0]
id = MO_liveid.split('|')[1]
except:
pass
Change:
PHP Code:
if line[0:7] == '#EXTINF':
try:
TV_liveid = (line.split('tvshow|')[1])
TV_liveid = 'tvshow|' + TV_liveid
type = (TV_liveid.split('|'))[0]
id = (TV_liveid.split('|'))[1]
except Exception,e:
MO_liveid = line.split('movie|')[1]
MO_liveid = 'movie|' + MO_liveid
type = MO_liveid.split('|')[0]
id = MO_liveid.split('|')[1]
except:
pass
try:
mpath = line.split('////')[1]
except:
pass
Let me know if it's just easier to send you the files with the updates in them.