Safer way to get reddit url

This commit is contained in:
Ruud
2014-03-16 18:27:58 +01:00
parent d74578ec66
commit ec3a6e65ae

View File

@@ -10,7 +10,8 @@ class Reddit(UserscriptBase):
includes = ['*://www.reddit.com/r/Ijustwatched/comments/*']
def getMovie(self, url):
name = splitString(url, '/')[-1]
name = splitString(splitString(url, '/ijw_')[-1], '/')[0]
if name.startswith('ijw_'):
name = name[4:]