Safer way to get reddit url
This commit is contained in:
1 parent
d74578ec66
commit
ec3a6e65ae
1 file changed
+2
-1
@@ -10,7 +10,8 @@ class Reddit(UserscriptBase):
|
|||||||
includes = ['*://www.reddit.com/r/Ijustwatched/comments/*']
|
includes = ['*://www.reddit.com/r/Ijustwatched/comments/*']
|
||||||
|
|
||||||
def getMovie(self, url):
|
def getMovie(self, url):
|
||||||
name = splitString(url, '/')[-1]
|
name = splitString(splitString(url, '/ijw_')[-1], '/')[0]
|
||||||
|
|
||||||
if name.startswith('ijw_'):
|
if name.startswith('ijw_'):
|
||||||
name = name[4:]
|
name = name[4:]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user