From f9e5b54bf166446752d4b00367d126927408b5e2 Mon Sep 17 00:00:00 2001 From: KRKeegan Date: Wed, 9 May 2007 03:26:53 +0000 Subject: [PATCH] -Fixed dumb errors in video.py I hate it when I make a stupid mistake! --- plugins/video/video.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/video/video.py b/plugins/video/video.py index a6b0ce7..2cc7794 100644 --- a/plugins/video/video.py +++ b/plugins/video/video.py @@ -65,7 +65,7 @@ class video(Plugin): return query, None #this breaks up the anchor item request into seperate parts - if 'AnchorItem' in query: + if 'AnchorItem' in query and (query['AnchorItem']) != ['Hack8.3']: if "".join(query['AnchorItem']).find('Container=') >= 0: #This is a folder queryAnchor = unquote_plus("".join(query['AnchorItem'])).split('Container=')[-1] @@ -73,7 +73,8 @@ class video(Plugin): else: #This is a file queryAnchor = unquote_plus("".join(query['AnchorItem'])).split('/',1)[-1] - (leftAnchor, seperator, rightAnchor) = queryAnchor.rpartition('/') + print queryAnchor + (leftAnchor, rightAnchor) = queryAnchor.rsplit('/', 1) debug_write(['Hack queryAnchor: ', queryAnchor, ' leftAnchor: ', leftAnchor, ' rightAnchor: ', rightAnchor, '\n']) try: -- 2.11.4.GIT