PDA

View Full Version : Need help in coding plugin for flimicity.in


sansat
2009-08-23, 08:22
Hello All,

I am a very new user and have tried to create a plugin for

www.filmicity.in

the plugin details can be fould at

http://pastebin.com/f694e2eec

I have following issues:

1. I am able to see list of shows but cannot play them it gives the python error - this is the foremost and most important issue - please guide ..

2. How do I mention in the plugin to show next page option bcos currently it list only the first 45 videos in the fisrt page so how will i see the other videos in other pages

3. On the site the videos are in parts so how do I list all the parts

Please guide

Thanks

sansat
2009-08-24, 03:36
Anyone ?

I have also tried the below code

http://pastebin.com/f685f4a48

But still no luck

would appreciate a reply from experienced plugin writers

thanks

sansat
2009-08-24, 08:34
I have also tried below code to see if I could get the pages and parts listed but no luck - in below code its not even listing videos of first page..

http://pastebin.com/f5827509f

Please guide in making this plugin work for www.filmicity.in

Thanks

stacked
2009-08-24, 18:23
I have also tried below code to see if I could get the pages and parts listed but no luck - in below code its not even listing videos of first page..

http://pastebin.com/f5827509f

Please guide in making this plugin work for www.filmicity.in

Thanks

Some tips:
- Turn on debug logging for xbmc
- look through the log after an error appears
- try to fix any errors before adding more code
- add print statements around your code so you can see what is getting passed through the plugin

Just by looking at the debug log I found your problem in a couple of seconds. I also added "print match" so I can see whats going on.

08:10:03 T:408 M:551960576 NOTICE: [('http://i27.tinypic.com/x6alx2.png', '17 Aug Thank You JiJaJi', '17 Aug Thank You JiJaJi'), ('http://i29.tinypic.com/2qutamc.jpg', '23 Aug Baa Bahoo Aur Baby - Season 2 * Episode 1', '23 Aug Baa Bahoo Aur Baby - Season 2 * Episode 1'), ('http://i43.tinypic.com/15g32wl.jpg', '22 Aug Sssshhh Phir Koi Hai', '22 Aug Sssshhh Phir Koi Hai'), ('http://i28.tinypic.com/mct5pv.jpg', '23 Aug MTV Stunt Mania', '23 Aug MTV Stunt Mania'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '22 Aug Dekh India Dekh', '22 Aug Dekh India Dekh'), ('http://i42.tinypic.com/2url6z7.jpg', '22 Aug 10 Ka Dum 2 * Navjot Singh Sidhu & Kapil Dev', '22 Aug 10 Ka Dum 2 * Navjot Singh Sidhu & Kapil Dev'), ('http://i42.tinypic.com/4vseq9.jpg', "22 Aug India's Got Talent - Grand Finale", "22 Aug India's Got Talent - Grand Finale"), ('http://i43.tinypic.com/15g32wl.jpg', '21 Aug Sssshhh Phir Koi Hai', '21 Aug Sssshhh Phir Koi Hai'), ('http://i31.tinypic.com/xngk0j.jpg', '22 Aug Tere Mere Beach Mein * Salman Khan', '22 Aug Tere Mere Beach Mein * Salman Khan'), ('http://i41.tinypic.com/2ptyofb.jpg', '22 Aug MTV Connected - Grand Finale', '22 Aug MTV Connected - Grand Finale'), ('http://i42.tinypic.com/eknwgm.jpg', "22 Aug L'il Champs", "22 Aug L'il Champs"), ('http://i42.tinypic.com/105s7b8.jpg', '21 Aug CID', '21 Aug CID'), ('http://i42.tinypic.com/eknwgm.jpg', "21 Aug L'il Champs", "21 Aug L'il Champs"), ('http://i28.tinypic.com/5cyj5w.jpg', 'Because My Name is Khan', 'Because My Name is Khan'), ('http://i27.tinypic.com/qs8i77.png', 'AR Rahman Unplugged', 'AR Rahman Unplugged'), ('http://i31.tinypic.com/fyir8m.jpg', 'SRK Speaks on US Airport Detention', 'SRK Speaks on US Airport Detention'), ('http://i29.tinypic.com/4qmq7m.png', 'The Making of Kaminey', 'The Making of Kaminey'), ('http://i43.tinypic.com/15g32wl.jpg', '15 Aug Sssshhh Phir Koi Hai', '15 Aug Sssshhh Phir Koi Hai'), ('http://i42.tinypic.com/4vseq9.jpg', "16 Aug India's Got Talent - Wild Card Entry", "16 Aug India's Got Talent - Wild Card Entry"), ('http://i29.tinypic.com/25zjtjb.jpg', '16 Aug Vikram Aur Betaal', '16 Aug Vikram Aur Betaal'), ('http://i26.tinypic.com/68547c.jpg', '16 Aug Khana Khazana', '16 Aug Khana Khazana'), ('http://i28.tinypic.com/mct5pv.jpg', '16 Aug MTV Stunt Mania', '16 Aug MTV Stunt Mania'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '15 Aug Dekh India Dekh', '15 Aug Dekh India Dekh'), ('http://i39.tinypic.com/s3g4xy.jpg', '15 Aug Hans Baliye * Grand Finale', '15 Aug Hans Baliye * Grand Finale'), ('http://i42.tinypic.com/4vseq9.jpg', "15 Aug India's Got Talent", "15 Aug India's Got Talent"), ('http://i42.tinypic.com/eknwgm.jpg', "15 Aug L'il Champs", "15 Aug L'il Champs"), ('http://i42.tinypic.com/2url6z7.jpg', '15 Aug 10 Ka Dum 2 * Independence Day Special', '15 Aug 10 Ka Dum 2 * Independence Day Special'), ('http://i42.tinypic.com/105s7b8.jpg', '14 Aug CID', '14 Aug CID'), ('http://i43.tinypic.com/15g32wl.jpg', '14 Aug Sssshhh Phir Koi Hai', '14 Aug Sssshhh Phir Koi Hai'), ('http://i42.tinypic.com/eknwgm.jpg', "14 Aug L'il Champs", "14 Aug L'il Champs"), ('http://i25.tinypic.com/2r5sr40.jpg', '13 Aug To Catch a Star * Shahid Kapoor on Kaminey', '13 Aug To Catch a Star * Shahid Kapoor on Kaminey'), ('http://i27.tinypic.com/x6alx2.png', '10 Aug Thank You JiJaJi', '10 Aug Thank You JiJaJi'), ('http://i26.tinypic.com/s63r82.jpg', 'SRK * Karan Johar on My Name is Khan', 'SRK * Karan Johar on My Name is Khan'), ('http://i42.tinypic.com/4vseq9.jpg', "9 Aug India's Got Talent", "9 Aug India's Got Talent"), ('http://i26.tinypic.com/sn2mx5.png', '9 Aug Aaj Tak Seedhi Baat * Rakhi Sawant', '9 Aug Aaj Tak Seedhi Baat * Rakhi Sawant'), ('http://i28.tinypic.com/mct5pv.jpg', '9 Aug MTV Stunt Mania', '9 Aug MTV Stunt Mania'), ('http://i39.tinypic.com/s3g4xy.jpg', '8 Aug Hans Baliye', '8 Aug Hans Baliye'), ('http://i43.tinypic.com/15g32wl.jpg', '8 Aug Sssshhh Phir Koi Hai', '8 Aug Sssshhh Phir Koi Hai'), ('http://upload.wikimedia.org/wikipedia/en/thumb/9/99/DekhInidaDekh02.jpg/250px-DekhInidaDekh02.jpg', '8 Aug Dekh India Dekh', '8 Aug Dekh India Dekh'), ('http://i42.tinypic.com/4vseq9.jpg', "8 Aug India's Got Talent", "8 Aug India's Got Talent"), ('http://i41.tinypic.com/2ptyofb.jpg', '8 Aug MTV Connected', '8 Aug MTV Connected'), ('http://i42.tinypic.com/eknwgm.jpg', "8 Aug L'il Champs", "8 Aug L'il Champs"), ('http://i42.tinypic.com/2url6z7.jpg', '8 Aug 10 Ka Dum 2 * Sanjay Dutt and Jackie Shroff', '8 Aug 10 Ka Dum 2 * Sanjay Dutt and Jackie Shroff'), ('http://i42.tinypic.com/105s7b8.jpg', '7 Aug CID', '7 Aug CID'), ('http://i43.tinypic.com/15g32wl.jpg', '7 Aug Sssshhh Phir Koi Hai', '7 Aug Sssshhh Phir Koi Hai')]
08:10:03 T:408 M:551956480 NOTICE: Traceback (most recent call last):
08:10:03 T:408 M:551956480 NOTICE: File "C:\Documents and Settings\Administrator\Application Data\XBMC\plugins\video\PBS Video\default.py", line 432, in ?
08:10:03 T:408 M:551956480 NOTICE: INDEX(url)
08:10:03 T:408 M:551956480 NOTICE: File "C:\Documents and Settings\Administrator\Application Data\XBMC\plugins\video\PBS Video\default.py", line 36, in INDEX
08:10:03 T:408 M:551956480 NOTICE: for url,name in match:
08:10:03 T:408 M:551956480 NOTICE: ValueError
08:10:03 T:408 M:551956480 NOTICE: :
08:10:03 T:408 M:551956480 NOTICE: too many values to unpack
08:10:03 T:408 M:551956480 ERROR: Scriptresult: Error

So each element in the match array has 3 "arguments or parameters", but you are only address 2 (url,name) eg. ('http://i27.tinypic.com/x6alx2.png', '17 Aug Thank You JiJaJi', '17 Aug Thank You JiJaJi') You forgot to include the third argument in the for loop. Replace, "for url,name in match:" in line 34 with "for url,name,trash in match:" This gets the plugin running without errors. It doesn't exactly work because the url you are passing is a image and not a page.

I added a few lines to get the plugin running and playing a video. You still need to find a way to get to the other pages.
download: http://pastebin.com/m13b89026
btw, take a look at my changes under the diff...
http://pastebin.com/pastebin.php?diff=m13b89026


btw, I just wanna say thanks and congrats on trying to write your own plugin. :;): Most ppl would just request for a plugin rather than trying to make it for them self.

sansat
2009-08-24, 21:23
Thankyou very much for your reply.

I will try the code you have corrected and let you know.

Also I suppose the logs have to be enabled in the xbmc settings and view them in logs folder if there is some other procedure then do let me know.

Thanks

sansat
2009-08-24, 21:59
Excellent, the video is working. Thanks a lot

One question before I try to figure out how to get the pages working, the videos have multiple parts and it shows only the first part :

I chose the section in source which shows the videos to play the previous and next video eg - <a href="videos.php?id=14124" > and was written as below so am not sure if that was right to get the other parts to be listed :


match=re.compile('<a href="videos.php?id=(.+?)"</a>').findall(link)
addDir('Part 1',url,4,'')

for url,name in match:
addDir('Part '+name,url,4,'')


Please let me know.

Thanks

stacked
2009-08-24, 23:13
Excellent, the video is working. Thanks a lot

One question before I try to figure out how to get the pages working, the videos have multiple parts and it shows only the first part :

I chose the section in source which shows the videos to play the previous and next video eg - <a href="videos.php?id=14124" > and was written as below so am not sure if that was right to get the other parts to be listed :


match=re.compile('<a href="videos.php?id=(.+?)"</a>').findall(link)
addDir('Part 1',url,4,'')

for url,name in match:
addDir('Part '+name,url,4,'')


Please let me know.

Thanks

Thats not going to work. I think the best way would be to find out how parts each video has (eg. do a regex of "1 of #"). Then you can just manually generate the pages.

sansat
2009-08-25, 17:19
How to do - regex of "1 of #" - is it something which is done in python shell or in the source?

Also do I have to manually go through each video and find the parts ?

Please let me know

Thanks

sansat
2009-08-25, 17:44
Ok I googled it and found regex is regular expressions - so I tried something like below to test the result


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=14093'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('1 of (.+?)').findall(link)
print match



And I got



['4']



So it means it has 4 parts right - then do I to do it for each video ?

sansat
2009-08-25, 18:36
Also I am trying to create one for www.rajshri.com where video is not in parts which is good ...but one has to login to this site: (free login)

How can we pass username/password via the plugin to the site - is it possible.

Sorry, I am asking too many questions but it will help in deciding if its worth the effort creating the plugin for this site.

Thanks

stacked
2009-08-25, 23:33
Ok I googled it and found regex is regular expressions - so I tried something like below to test the result


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=14093'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('1 of (.+?)').findall(link)
print match



And I got



['4']



So it means it has 4 parts right - then do I to do it for each video ?

Yeah. So if it has 4 parts and part 1 id=14093, you can assume that ids for parts 2,3, and 4 is 14094,14095,14096. For this example, you could just do a for loop that addDir for all parts with the correct url.

sansat
2009-08-25, 23:43
Ok,

Can you please let me know a sample print statement where you can see whats been passed through the plugin, like you showed in your debug output and where exactly it should be placed.

Thanks

stacked
2009-08-26, 00:14
Ok,

Can you please let me know a sample print statement where you can see whats been passed through the plugin, like you showed in your debug output and where exactly it should be placed.

Thanks

you just put the print statement right after the variable you want to see.

For ex:

match=re.compile('szasdsa(.+?)sadas').findall(asds )
print match

And it will show up in the xbmc.log

btw, make google is your friend. You can find alot of python examples or tutorials. For example, google: python print examples

sansat
2009-08-26, 00:22
I had tried that and it was erroring out, will try it again and keep you posted.

Also can you please let me know if its possible to pass username/passwords via the plugin for www.rajshri.com ?

Thanks

stacked
2009-08-26, 07:19
I had tried that and it was erroring out, will try it again and keep you posted.

Also can you please let me know if its possible to pass username/passwords via the plugin for www.rajshri.com ?

Thanks

I code above was just an example, it doesn't work.

It's possible to use username/pass, but I haven't done it myself yet.

Again, google it or see how someone else done it on a different plugin:
http://code.google.com/p/xbmc-addons/source/checkout

sansat
2009-08-27, 20:54
In the site www.rajshri.com, under any section like tv shows, movies etc, when I move my mouse over page 1, 2 etc, I see a javascript - In the source also I see it as



<a id="ctlPagingTop_lnkBtn4" title="Page 208" href="javascript:__doPostBack('ctlPagingTop$lnkBtn4','')" style="cursor:pointer;cursor:hand;padding:3px;margin-right:0px;border:1px solid #CCCCCC;">208</a>




So is there any way in python to identify javascripts ?

I googled for it by many links say there is no support for javascript in python, so just wanted your opinion if its worth the effort to make a plugin for www.rajshri.com

Please let me know

sansat
2009-08-28, 02:07
Stacked,

I am trying to get only the id from filmicity so that i can add +1 to display each part in the for loop

please guide me in below code as I want only the id instead of videos.php?id=14093,


import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="videos.php?id=(.+?)"><img src="(.+?)" border="0" height="115" width="155" alt="(.+?)" title="(.+?)" class="reflect rheight20 ropacity50"/></a>').findall(link)



Thanks

sansat
2009-08-28, 02:12
and once the above script works:
will below code afterthat give me the id ?



part1 = match[0]
print part1



FYI - :) I am actually not a coder but trying am it out,

stacked
2009-08-28, 11:06
try this

import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/videos.php?id=14169'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
parts=re.compile('1 of (.+?)').findall(link)
match=re.compile('<a href="videos.php\?id=(.+?)" ><img src="templates/Photine/images/next_video.png" border').findall(link)
print parts[0]
print match[0]
save=int(match[0])
for x in range(int(parts[0])):
save=save+1
print save

sansat
2009-08-28, 21:20
Thanks.

Do you see anything wrong with below code as I am not getting any value ? it gives [] instead ?



import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="/index.php?next=(.+?)">[(.+?)]</a>').findall(link)
print match



Thanks for all your guidance..

sansat
2009-08-29, 01:05
Some good news, I am have been able to make the parts works, now only the page is left and the plugin will be complete.

Please let me know why I am not able to get the values from below 2 codes:

This codes lists pages for videos(1,2,3, etc)


import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="/index.php?next=(.+?)">[(.+?)]</a>').findall(link)
print match




This code should list the movies pages (A,B,C-- etc)


import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href='list.php?alpha=(.+?)'>(.+?)</a>').findall(link)
print match


Thanks

stacked
2009-08-29, 02:34
There are 11 characters with special meanings: the opening square bracket [, the backslash \, the caret ^, the dollar sign $, the period or dot ., the vertical bar or pipe symbol |, the question mark ?, the asterisk or star *, the plus sign +, the opening round bracket ( and the closing round bracket ). These special characters are often called "metacharacters".

If you want to use any of these characters as a literal in a regex, you need to escape them with a backslash.

so

match=re.compile('<a href='list.php?alpha=(.+?)'>(.+?)</a>').findall(link)


should be
match=re.compile('<a href='list\.php\?alpha=(.+?)'>(.+?)</a>').findall(link)

sansat
2009-08-29, 16:30
When I put below code- it still gives me no value as []


import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="/index\.php\?next=(.+?)">[(.+?)]</a>').findall(link)
print match



and for below code it gives me syntax error



import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href='list\.php\?alpha=(.+?)'>(.+?)</a>').findall(link)
print match



please help

sansat
2009-08-29, 17:16
Ok the first code shown below is working now after I removed [] from second value


import urllib2,urllib,re

#Filmicity
url = 'http://www.filmicity.in/'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match=re.compile('<a href="/index\.php\?next=(.+?)">(.+?)</a>').findall(link)
print match


will work on the next one

stacked
2009-08-29, 22:39
match=re.compile('<a href=\'list\.php\?alpha=(.+?)\'>(.+?)</a>').findall(link)

you forgot to escape the single quotes

sansat
2009-08-30, 09:31
Thanks.

Well below is my code where it display,the moviepages, tvshows pages, parts under each show and also plays some but some it does not even if its of dailymotion.It plays on the website but in xbmc there is nothing displayed under parts -normally under part1 folder it would display - play part 1

http://pastebin.com/f449bc4b4

If you see in page 1 of TV shows most of the videos in the parts play but from page 2 onwards its very random - for eample in page 2 - 1 Aug - videos does not have videos under the parts - any idea why its behaving like this ?

Below is the log in which I am able to play a video and for the other it does not display any video to play - the parts folder is empty

http://pastebin.com/m5f6dd8cf


Also is it possible to pass multiple urls in one definition of parts ?- for example in the video page - http://www.filmicity.in/videos.php?id=9865 - parts are not displayed in source like part 1 of - but in its next video page - http://www.filmicity.in/videos.php?id=9866- its displayed as - part 2 of 7
- so I was wondering first to check if main url has the parts if not then change the url to the next page and scrape the part from it...

I am trying to write code shown below for different conditions of parts but the last section of elseif is the one I am trying to figure a way to scrape mutiple urls -

http://pastebin.com/f3d45ab0f

In above code you will get results when we use

url='http://www.filmicity.in/videos.php?id=14169'
url='http://www.filmicity.in/videos.php?id=14159'

but no results

url='http://www.filmicity.in/videos.php?id=9865' - its bcos i am not sure if its possible to do it-

Please let me know.

Thanks

stacked
2009-08-30, 10:37
Also is it possible to pass multiple urls in one definition of parts ?- for example in the video page - http://www.filmicity.in/videos.php?id=9865 - parts are not displayed in source like part 1 of - but in its next video page - http://www.filmicity.in/videos.php?id=9866- its displayed as - part 2 of 7
- so I was wondering first to check if main url has the parts if not then change the url to the next page and scrape the part from it...

I am trying to write code shown below for different conditions of parts but the last section of elseif is the one I am trying to figure a way to scrape mutiple urls -

http://pastebin.com/f3d45ab0f

In above code you will get results when we use

url='http://www.filmicity.in/videos.php?id=14169'
url='http://www.filmicity.in/videos.php?id=14159'

but no results

url='http://www.filmicity.in/videos.php?id=9865' - its bcos i am not sure if its possible to do it-

Please let me know.

Thanks

You could pass multiple urls by:

url='http://www.filmicity.in/videos.php?id=14169'+';'+'http://www.filmicity.in/videos.php?id=14169'+';'+'http://www.filmicity.in/videos.php?id=14169'

then once it gets passed, you can split them by:

urls=url.split(';')

So the first url with be urls[0], then urls[1]...


btw, this site looks a little too unorganized to make a plugin for. There are too many random situations to deal with. You're gonna have a hard to trying to get everything to work smoothly. Good luck...

sansat
2009-08-30, 13:19
Thanks,

can you please let me know on below query:

Well below is my code where it display,the moviepages, tvshows pages, parts under each show and also plays some but some it does not even if its of dailymotion.It plays on the website but in xbmc there is nothing displayed under parts -normally under part1 folder it would display - play part 1

http://pastebin.com/f449bc4b4

If you see in page 1 of TV shows most of the videos in the parts play but from page 2 onwards its very random - for eample in page 2 - 1 Aug - videos does not have videos under the parts - any idea why its behaving like this ?

Below is the log in which I am able to play a video and for the other it does not display any video to play - the parts folder is empty

http://pastebin.com/m5f6dd8cf

Thanks

stacked
2009-08-30, 19:16
Thanks,

can you please let me know on below query:

Well below is my code where it display,the moviepages, tvshows pages, parts under each show and also plays some but some it does not even if its of dailymotion.It plays on the website but in xbmc there is nothing displayed under parts -normally under part1 folder it would display - play part 1

http://pastebin.com/f449bc4b4





If you see in page 1 of TV shows most of the videos in the parts play but from page 2 onwards its very random - for eample in page 2 - 1 Aug - videos does not have videos under the parts - any idea why its behaving like this ?

Below is the log in which I am able to play a video and for the other it does not display any video to play - the parts folder is empty

http://pastebin.com/m5f6dd8cf

Thanks

c'mon, it's not magic that I'm finding where the problem is. You can do it too :oo: You just need to break down the code and find what parts aren't working. Usually the problem is with regex not matching.

My though process for finding the problem...
Since I know that everything works until I click on the on of the parts links ( eg. Part 1 for 1 Aug MTV Connected (http://www.filmicity.in/videos.php?id=13875) ), I know the problem is somewhere under the VIDEOLINKS function. Because the video is from dailymotion, I can start testing the regex code for dailymotion starting at line 92. Once there, I test out the first regex p=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)">') and it works fine. When I test out the second regex comp=re.compile('<a href="(.+?)" title="Click to Download"><font color=red>'), I noticed nothing is matched. So I open the same url in my browser and look at the html source. Link (http://www.flashvideodownloader.org/download.php?u=http://www.dailymotion.com/video/xa1f6k) There I can see why the function wasn't returning a video. flashvideodownloader.org shows that "Download temporarily unavailable." for some videos.

sansat
2009-08-30, 21:17
Thanks Stacked, actually I was looking at only the first regex and it was matching in both working and non working videos, did not look into the second one, do we need the second one ? for any videos as I am not downloading the video's so maybe I will remove it and see if it helps.

Thanks for your guidance and also regarding multiple urls, my requirement was to first scrape a url, if it does not return a value, then scrape the second url, so when I add the below code for each url it does not work so was not sure if we could scrape many url in one definition(for example in def PARTS(url):) using below code twice,


req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()


thanks for your guidance and tips as it really directs me in the right direction..As you said this site is very inconsistent but since its the first site i am trying so if I try various scenarios it will help me in creating other plugins faster - hopefully :)

stacked
2009-08-30, 21:49
Thanks Stacked, actually I was looking at only the first regex and it was matching in both working and non working videos, did not look into the second one, do we need the second one ? for any videos as I am not downloading the video's so maybe I will remove it and see if it helps.


The second regex uses flashvideodownloader.org to extract the direct video url (*.flv) from the dailymotion site. So you do need it.


Thanks for your guidance and also regarding multiple urls, my requirement was to first scrape a url, if it does not return a value, then scrape the second url, so when I add the below code for each url it does not work so was not sure if we could scrape many url in one definition(for example in def PARTS(url):) using below code twice,


req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()


thanks for your guidance and tips as it really directs me in the right direction..As you said this site is very inconsistent but since its the first site i am trying so if I try various scenarios it will help me in creating other plugins faster - hopefully :)

The code below checks for matches in part 1 and then part 2
http://pastebin.com/m6119b0ae


...I really hope your plugin is done because I don't feel like writing any more code :grin:

sansat
2009-08-31, 06:08
Ya I do understand :)

I changed the code for parts a bit

('1 of (.+?)') to ('1 of (\d+)')
as the first code would only display part 1 if there are 10 or 12 parts..

But with your guidance by trying to write this plugin, I have got a hang of the flow from categories to parts and video is the section I would like to know - no code :laugh: but to understand how it works.


The second regex uses flashvideodownloader.org to extract the direct video url (*.flv) from the dailymotion site. So you do need it.


since the second regex is needed - and the download link is unvailable for some shows, hence we see parts without videos in xbmc - so how is it playing in the browser online ? Is there any solution for such scenarios or we will have to live with it ?

Also is there any logic to get parts for shows which do not have "part 1 of " or "part 2 of" in any of its pages and just have prev and next references?

Thanks

stacked
2009-08-31, 09:05
Ya I do understand :)

since the second regex is needed - and the download link is unvailable for some shows, hence we see parts without videos in xbmc - so how is it playing in the browser online ? Is there any solution for such scenarios or we will have to live with it ?

Because the website is playing directly from dailymotion flash player. In xbmc you are using flashvideodownloader.org to get the video url. Try using a different site to extract the url for you.

Also is there any logic to get parts for shows which do not have "part 1 of " or "part 2 of" in any of its pages and just have prev and next references?

I can't think of any.

Voinage
2009-08-31, 16:44
Please stop using sites to grab your urls.

Just adapt the below code to give you the direct blobby.



#DAILYMOTION
try:
daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)"/>').findall(link)
req = urllib2.Request('http://www.dailymotion.com/video/%s'%daily[0])
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
match=re.compile('url=rev=.+?&uid=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)
addLink(name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")
except: pass

sansat
2009-09-01, 20:35
Thanks stacked,..

Thanks Voinage for this new solution.

When I add the code it does not display video in the parts section - its empty.

Below is the code

http://pastebin.com/f339d6ecc

Please let me know if I have missed something.

Thanks

sansat
2009-09-02, 16:54
Any update on above message ?

sansat
2009-09-02, 20:13
I removed / from below code


daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)"/>').findall(link)



to


daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)">').findall(link)



and it passes the daily[0] value but it does not display the videos in the parts - its still empty so am not sure what else has to be changed in remaining code to make it to work --


req = urllib2.Request('http://www.dailymotion.com/video/%s'%daily[0])
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
match=re.compile('url=rev=.+?&uid=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)
addLink(name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")


please let me know

Thanks

stacked
2009-09-02, 21:51
I removed / from below code


daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)"/>').findall(link)



to


daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)">').findall(link)



and it passes the daily[0] value but it does not display the videos in the parts - its still empty so am not sure what else has to be changed in remaining code to make it to work --


req = urllib2.Request('http://www.dailymotion.com/video/%s'%daily[0])
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
match=re.compile('url=rev=.+?&uid=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)
addLink(name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")


please let me know

Thanks

I know where the problem is but I want you to figure it out...

Check if match is returning a value. If not, there is something wrong with the regex. Go to a dailymotion page (http://www.dailymotion.com/video/xacrg2_31-aug-thank-you-jijaji_fun), look at the source and confirm if the regex is correct. Once you're done with that, check if the url you are passing to addLink is accessible in your browser. Remember to print things out if you don't know whats going on.

sansat
2009-09-02, 22:07
Thanks for replying, I was going in the same direction as you have mentioned and have changed code

from

match=re.compile('url=rev=.+?&uid=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)

to

match=re.compile('url=rev=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)


and it displays the videos under parts but it does not play the videos:

Below is the log:

http://pastebin.com/d54ad799d

Anyway will keep you posted

Thanks

sansat
2009-09-03, 00:10
As an update - I changed below code also

from

addLink(name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")

to

addLink(name,urllib.unquote(match[0]),"")

And it plays video but some of the parts which were shown as empty are still empty so now I have to see what url is being passed for those videos

will keep you posted.

Thanks

sansat
2009-09-03, 01:30
Ok now I would need your suggestion in this as I am not able to figure out:)

From below code - 13909,14169,14159 works but 13872,13867,13863,13851 does not work and I am not able to see the source of non-working videos in dailymotion as it says access denied like below link but they work online..
non-working video
http://www.dailymotion.com/video/xa1etr

for 14169 working video - below link from dailymotion works -
http://www.dailymotion.com/video/k5Sgqp6J3QrO9r1awhc


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=13909'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
daily=re.compile('<param name="movie" value="http://www.dailymotion.com/swf/(.+?)">').findall(link)
print daily[0]
req = urllib2.Request('http://www.dailymotion.com/video/%s'%daily[0])
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
match=re.compile('url=rev=.+?&lang=en&callback=.+?&preview=.+?&video=(.+?)%40%40spark').findall(response)
print match[0]
#addLink(name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")

Thanks

stacked
2009-09-03, 04:31
That's odd. The embed video works but the link to the actual video doesn't.

works:
http://www.dailymotion.com/swf/xa1etr

doesn't:
http://www.dailymotion.com/video/xa1etr

sansat
2009-09-03, 19:42
Ya, so then for that site we may have to live with that limitation as I am not able to figure out any other method...

Also most of videos in movies sections have parts but in the source they are not mentioning the no of parts so we can't have those videos play either as I can't figure a way for that either..

Thanks

sansat
2009-09-04, 23:40
Well I found a way to display parts which are not having part 1 of or part 2 of in source, I kept at default value for parts as 15 and it will list 15 parts by default with consecutive videos under each part - this way I am able to atleast play 60% of the video's on this site: now the remaining some are google videos which I need to work on and others are the ones for which we cannot find a fix where we can play online but not through the source..

Will keep you posted.

sansat
2009-09-05, 01:00
For google video in below code, I am not able to get the id


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=4684'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
google=re.compile('<embed style="width:625px; height:509px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=(.+?)" flashvars=""> </embed>').findall(link)
print google
#addLink('Play '+name,url,"")



Instead of just id, if I do (.+?) on whole url like below , i get a result, but i need only ID - anything I am missing ?



import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=4684'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
google=re.compile('<embed style="width:625px; height:509px;" id="VideoPlayback" type="application/x-shockwave-flash" src="(.+?)" flashvars=""> </embed>').findall(link)
print google
#addLink('Play '+name,url,"")





Also from source of the google video, I am not able to figure out the actual url which I can pass through urllib.unquote()

http://video.google.com/videoplay?docid=2197268320520526787

Please let me know

Thanks

stacked
2009-09-05, 01:30
why cant you just do something like

http://video.google.com/googleplayer.swf?docid=(.+?)&hl=en&fs=true

sansat
2009-09-05, 15:51
still its giving me []


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=4684'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
google=re.compile('http://video.google.com/googleplayer.swf?docId=(.+?)&hl=en&fs=true').findall(link)
print google
#addLink('Play '+name,url,"")



Can I split the ID from the output -
http://video.google.com/googleplayer.swf?docId=2197268320520526787 - ?

sansat
2009-09-05, 18:03
Ok I have found the acutal source for video which is

http://v10.lscache3.googlevideo.com/videoplayback?id=7ffb40f883c63b49&itag=5&begin=0&ip=0.0.0.0&ipbits=0&expire=1252183696&sparams=ip,ipbits,expire,id,itag&signature=5843A4D2F0C86C5A0EC8777C0DF26093D96D5B4C .36E4922E9F3C48BF80035EA2290E6701C08554D1&key=ck1


Only let me know how I can get the id from below code..


import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=4684'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
google=re.compile('http://video.google.com/googleplayer.swf?docId=(.+?)&hl=en&fs=true').findall(link)
print google
#addLink('Play '+name,url,"")

stacked
2009-09-05, 18:05
u forgot to escape the special characters

sansat
2009-09-06, 03:28
ok got it

thanks

sansat
2009-09-06, 14:00
Can you please tell me if I have missed any special characters as I am getting [] for actual source

link - http://video.google.com/videoplay?docid=2197268320520526787#

actual video section from above link source

preview_url:'/s/zizJPyf32zs/googleplayer.swf?videoUrl\x3dhttp://v10.lscache3.googlevideo.com/videoplayback%3Fid%3D7ffb40f883c63b49%26itag%3D5%2 6begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D 1252256008%26sparams%3Dip,ipbits,expire,id,itag%26 signature%3D42F54851C1453EFFFDBD8FA330BF4AB224D959 60.250A203C393A8EFF44B63CD8EFDCEA353ED318F3%26key% 3Dck1\x26thumbnailUrl\x3dhttp://1.gvt0.com/ThumbnailServer2%3Fapp%3Dvss%26contentid%3D7ffb40f 883c63b49%26offsetms%3D5000%26itag%3Dw320%26hl%3De n%26sigh%3DN0YlP6Eyv09H8rlnaB_dbPcY_r8\x26docid\x3 d2197268320520526787\x26hl\x3den\x26autoplay\x3d1' ,




Code where help is needed in special characters:)

match=re.compile('preview_url\:\'/s/zizJPyf32zs/googleplayer\.swf\?videoUrl\x3d(.+?)\x26thumbnailU rl').findall(response)


full test code..

import urllib2,urllib,re

url='http://www.filmicity.in/videos.php?id=4684'

req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
print url
google=re.compile('src=\"http://video\.google\.com/googleplayer\.swf\?docId=(.+?)"').findall(link)
print google[0]
req = urllib2.Request("http://video.google.com/videoplay?docid="+str(google[0]))
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14')
response = urllib2.urlopen(req).read()
match=re.compile('preview_url\:\'/s/zizJPyf32zs/googleplayer\.swf\?videoUrl\x3d(.+?)\x26thumbnailU rl').findall(response)
print match
#addLink('Play '+name,"http://www.dailymotion.com"+urllib.unquote(match[0]),"")
#test = urllib.unquote('http://v10.lscache3.googlevideo.com/videoplayback%3Fid%3D7ffb40f883c63b49%26itag%3D5%2 6begin%3D0%26ip%3D0.0.0.0%26ipbits%3D0%26expire%3D 1252217864%26sparams%3Dip,ipbits,expire,id,itag%26 signature%3D380E7CA446507B0854EB6FA1F63867604A02BD .8626274EC12894C27FC4BA53DE3BE6B7B1B5CD96%26key%3D ck1')
#print test




final output needed



http://v10.lscache3.googlevideo.com/videoplayback?id=7ffb40f883c63b49&itag=5&begin=0&ip=0.0.0.0&ipbits=0&expire=1252217864&sparams=ip,ipbits,expire,id,itag&signature=380E7CA446507B0854EB6FA1F63867604A02BD.8 626274EC12894C27FC4BA53DE3BE6B7B1B5CD96&key=ck1


please let me knw

sansat
2009-09-07, 09:45
Any idea on above issue ?

sansat
2009-09-08, 17:35
Any suggestion - Stacked ?

stacked
2009-09-09, 19:33
match=re.compile('preview_url\:\'/s/zizJPyf32zs/googleplayer\.swf\?videoUrl\\\\x3d(.+?)\\\\x26thum bnailUrl').findall(response)

You forgot to escape the backslash

sansat
2009-09-09, 19:34
maybe you are busy, anyway I am temporarily running google videos using the flashdownloader.org site, whenever you get a chance do let me know on the above issue of regex..

I have nearly finished writing another plugin for interval.in, but its a very small issue which I am not able to figure out from the log. The issue is only part 1 vidoes are getting displayed, when I do the test individually all parts are displayed but in videolink section, only part 1 get shown no other parts - when you get time please let me know what is wrong.

Full code
http://pastebin.com/f1f792568

Full log
http://pastebin.com/f7b05d450

Below are the sections in log which is confusing and I am not able to figure why its shows video of part 1 and not part 2 etc

Shows part 1 and print code and url...

12:28:18 T:3460 M:1289695232 NOTICE: Mode: 4
12:28:18 T:3460 M:1289695232 NOTICE: URL: http://www.interval.in/videos.php?id=88295
12:28:18 T:3460 M:1289695232 NOTICE: Name: Part 1
12:28:18 T:3460 M:1289695232 NOTICE: http://www.interval.in/videos.php?id=88295
12:28:18 T:3460 M:1289666560 DEBUG: LoadLibraryA('ws2_32')
12:28:18 T:3460 M:1289666560 DEBUG: LoadLibrary('ws2_32.dll') returning: 038FCF50
12:28:19 T:3460 M:1289744384 NOTICE: code=uhVZyzQihnA
12:28:19 T:1644 M:1289867264 INFO: Loading skin file: DialogProgress.xml
12:28:19 T:1644 M:1289863168 DEBUG: Load DialogProgress.xml: 2.82ms
12:28:19 T:1644 M:1289863168 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:28:19 T:1644 M:1289818112 DEBUG: Alloc resources: 1.06ms (0.00 ms skin load)
12:28:19 T:3460 M:1285652480 NOTICE: http://www.youtube.com/get_video?video_id=uhVZyzQihnA&t=vjVQa1PpcFOfju-K-nKkgsREnfdpz5B2kJ-UsnVbfCA%3D&fmt=18
12:28:19 T:3460 M:1287843840 INFO: Scriptresult: Success
12:28:20 T:1644 M:1287835648 DEBUG: DIRECTORY::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
12:28:20 T:1644 M:1287831552 DEBUG: Saving fileitems [plugin://video/Interval/?url=http%3A%2F%2Fwww.interval.in%2Fvideos.php%3Fi d%3D88295&mode=4&name=Part+1]
12:28:20 T:1644 M:1287831552 DEBUG: -- items: 1, sort method: 0, ascending: false
12:28:20 T:1260 M:1287716864 DEBUG: thread start, auto delete: 0
12:28:20 T:1260 M:1286967296 DEBUG: Thread 1260 terminating
12:28:20 T:3460 M:1286602752 INFO: Python script stopped
12:28:20 T:3460 M:1286602752 DEBUG: Thread 3460 terminating
12:28:20 T:1644 M:1286647808 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
12:28:20 T:1644 M:1288818688 DEBUG: python thread 6 destructed
12:28:20 T:1644 M:1288818688 INFO: Python, unloading python24.dll because no scripts are running anymore
12:28:20 T:1644 M:1288855552 DEBUG: XBPython::UnloadExtensionLibs, clearing python extension libraries
12:28:20 T:1644 M:1288855552 DEBUG: Win32DllLoader::Unload DLLs\zlib.pyd
12:28:20 T:1644 M:1288855552 DEBUG: FreeLibrary(python24.dll) -> 039EF458
12:28:20 T:1644 M:1288855552 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:20 T:1644 M:1288916992 DEBUG: Win32DllLoader::Unload DLLs\_socket.pyd
12:28:20 T:1644 M:1288916992 DEBUG: FreeLibrary(python24.dll) -> 039EF458
12:28:20 T:1644 M:1288916992 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:20 T:1644 M:1288962048 DEBUG: Win32DllLoader::Unload DLLs\_ssl.pyd
12:28:20 T:1644 M:1288962048 DEBUG: FreeLibrary(python24.dll) -> 039EF458
12:28:20 T:1644 M:1288962048 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:20 T:1644 M:1289379840 DEBUG: Win32DllLoader::Unload python24.dll
12:28:20 T:1644 M:1289379840 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:22 T:1644 M:1290366976 DEBUG: SDLKeyboard: scancode: 28, sym: 13, unicode: 13, modifier: 0
12:28:22 T:1644 M:1290366976 DEBUG: CApplication::OnKey: 61453 pressed, action is 7
12:28:22 T:1644 M:1290604544 DEBUG: CGUIMediaWindow::GetDirectory


Shows part 2 but does not print code nor url - hence it does not show play part 2..


12:28:25 T:1596 M:1286545408 NOTICE: Mode: 4
12:28:25 T:1596 M:1286545408 NOTICE: URL: http://www.filmicity.in/videos.php?id=88296
12:28:25 T:1596 M:1286545408 NOTICE: Name: Part 2
12:28:25 T:1596 M:1286545408 NOTICE: http://www.filmicity.in/videos.php?id=88296
12:28:25 T:1596 M:1286516736 DEBUG: LoadLibraryA('ws2_32')
12:28:25 T:1596 M:1286516736 DEBUG: LoadLibrary('ws2_32.dll') returning: 038FCF50
12:28:25 T:1596 M:1286410240 INFO: Scriptresult: Success
12:28:25 T:1644 M:1286410240 DEBUG: DIRECTORY::CPluginDirectory::WaitOnScriptResult- plugin returned successfully
12:28:25 T:2944 M:1286406144 DEBUG: thread start, auto delete: 0
12:28:26 T:2944 M:1286393856 DEBUG: Thread 2944 terminating
12:28:26 T:1596 M:1286434816 INFO: Python script stopped
12:28:26 T:1596 M:1286434816 DEBUG: Thread 1596 terminating
12:28:26 T:1644 M:1286479872 DEBUG: python thread 7 destructed
12:28:26 T:1644 M:1286479872 INFO: Python, unloading python24.dll because no scripts are running anymore
12:28:26 T:1644 M:1286479872 DEBUG: XBPython::UnloadExtensionLibs, clearing python extension libraries
12:28:26 T:1644 M:1286479872 DEBUG: Win32DllLoader::Unload DLLs\zlib.pyd
12:28:26 T:1644 M:1286479872 DEBUG: FreeLibrary(python24.dll) -> 0394D960
12:28:26 T:1644 M:1286479872 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:26 T:1644 M:1286541312 DEBUG: Win32DllLoader::Unload DLLs\_socket.pyd
12:28:26 T:1644 M:1286541312 DEBUG: FreeLibrary(python24.dll) -> 0394D960
12:28:26 T:1644 M:1286541312 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:26 T:1644 M:1286586368 DEBUG: Win32DllLoader::Unload DLLs\_ssl.pyd
12:28:26 T:1644 M:1286586368 DEBUG: FreeLibrary(python24.dll) -> 0394D960
12:28:26 T:1644 M:1286586368 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:26 T:1644 M:1287004160 DEBUG: Win32DllLoader::Unload python24.dll
12:28:26 T:1644 M:1287004160 DEBUG: FreeLibrary(MSVCR71.dll) -> 01779DE0
12:28:28 T:1644 M:1288048640 DEBUG: SDLKeyboard: scancode: 28, sym: 13, unicode: 13, modifier: 0
12:28:28 T:1644 M:1288048640 DEBUG: CApplication::OnKey: 61453 pressed, action is 7
12:28:28 T:1644 M:1288060928 DEBUG: CGUIMediaWindow::GetDirectory



It might be something silly but I am not able to figure out, please guide..

Thanks

sansat
2009-09-09, 20:47
Thanks for replying to the regex query.

Is x3d considered special character and then we need to put 3 backslashes as there are 3 letters ? is that how it works for special characters?

When you get time, please let me know your view on the above issue on part 2, 3 etc not being displayed in videos section ..

Thanks

stacked
2009-09-09, 21:20
Thanks for replying to the regex query.

Is x3d considered special character and then we need to put 3 backslashes as there are 3 letters ? is that how it works for special characters?

When you get time, please let me know your view on the above issue on part 2, 3 etc not being displayed in videos section ..

Thanks

the html source had two backslash \\, so to escape it, you need to add two more backslash resulting in \\\\

I started school and I'm either too busy or too tired to do anything. I would rather not waste more time this site/plugin. I'll try to answer any quick syntax/python questions but I'm not going through the full code to fix problems. Sorry :sad: Good luck with it.

sansat
2009-09-09, 22:20
Thanks for replying.

I understand once school starts then we get busy.

Anyway I think I figured out the issue.

Thanks for all your help