2013-01-24, 13:40
Hi,
in ChannelList.py i found this
and changed it to this
Now are my channels filled.
I know to use the runtime is not a good solution...
in ChannelList.py i found this
PHP Code:
# If duration doesn't exist, try to figure it out
if dur == 0:
dur = self.videoParser.getVideoLength(uni(match.group(1)).replace("\\\\", "\\"))
# As a last resort (since it's not as accurate), use runtime
if dur == 0:
duration = re.search('"runtime" *: *"([0-9]*?)",', f)
try:
# Runtime is reported in minutes
dur = int(duration.group(1)) * 60
except:
dur = 0
and changed it to this
PHP Code:
# If duration doesn't exist, try to figure it out
if dur == 0:
dur = self.videoParser.getVideoLength(uni(match.group(1)).replace("\\\\", "\\"))
print dur
# As a last resort (since it's not as accurate), use runtime
if dur == 0:
#duration = re.search('"runtime" *: *"([0-9]*?)",', f)
duration = re.search('"runtime": *([0-9]*?),', f)
try:
# Runtime is reported in minutes
#dur = int(duration.group(1)) * 60
dur = int(duration.group(1))
except:
dur = 0
Now are my channels filled.
I know to use the runtime is not a good solution...