Kodi Community Forum
[RELEASE] VideoMonkey - a video plugin for YouTube, Dailymotion, and everything else! - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] VideoMonkey - a video plugin for YouTube, Dailymotion, and everything else! (/showthread.php?tid=34666)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39


- Daven - 2009-01-05

Same problem with the hanging. XP Pro SP2 on that box. Clicking cancel in the first 10 seconds will cancel the plugin. Clicking cancel after 10-15 seconds locks up xbmc completely. I dont know how to pull a log yet or I would. (still reading/learning about xmbc)


- Temhil - 2009-01-05

sfaxman Wrote:Merci Temhil Big Grin I love your installer (the forum part is FANTASTIQUE Laugh)
sfaxman...
Thanks, Frostbox did a great job with the forum part! Big Grin


- sfaxman - 2009-01-05

igsolt Wrote:Same here...
Confused
Daven Wrote:Same problem with the hanging. XP Pro SP2 on that box....
Oo

It is surely a path problem. It will be fixed asap. Unfortunatly i need some days to be able to test it under WinXP (and linux) Stare

sfaxman...


- phazey - 2009-01-07

Getting this on a macbook:

Code:
18:26:29 T:2961670144 M:364134400  NOTICE:   File "/Users/phazey/Library/Application Support/XBMC/plugins/video/VideoMonkey/videomonkey.py", line 1533, in run
18:26:29 T:2961670144 M:364122112  NOTICE:     os.mkdir(xbmcplugin.getSetting('download_Path'))
18:26:29 T:2961670144 M:364122112  NOTICE: OSError: [Errno 2] No such file or directory: 'F:\\videos'

Will try to have a look.


What about RTL Now ? - angryjack - 2009-01-07

It was already mentioned in this thread that RTL Now will be integrated. Any News about the status ?

This will increase the WAF (Women Acceptance Factor) of my wife Big Grin

angryjack


- sfaxman - 2009-01-07

@all other than the xbox platform users having problems running the plugin: I just uploaded a version with a new option for enabling debug logging Nod Can you try it and post the last log messages. It will help localizing the problems Nerd

angryjack Wrote:It was already mentioned in this thread that RTL Now will be integrated. Any News about the status ?

This will increase the WAF (Women Acceptance Factor) of my wife Big Grin

angryjack

Did the ARD mediathek not increased her WAF Rolleyes

I played a bit with RTLNow and xbmc seems to have problems with the rtmp streams of this site Oo

Quote:22:07:46 M: 30552064 NOTICE: DVDPlayer: Opening: rtmp://fms.rtl.de/rtlnow/138/E77271_FB001_700k.flv
22:07:46 M: 30552064 WARNING: CDVDMessageQueue:Tongueut MSGQ_NOT_INITIALIZED
22:07:46 M: 30027776 NOTICE: Creating InputStream
22:07:46 M: 30007296 WARNING: RTMP_LIB::CRTMP::HandShake, client signiture does not match!
22:07:46 M: 30007296 NOTICE: Creating Demuxer
22:07:47 M: 24043520 ERROR: RTMP_LIB::CRTMP::HandleInvoke, rtmp server sent error
22:07:47 M: 24043520 ERROR: RTMP_LIB::CRTMP::HandleInvoke, rtmp server requested close
22:07:47 M: 24043520 ERROR: CDVDDemuxFFmpeg::Open - error reading from input stream, rtmp://fms.rtl.de/rtlnow/138/E77271_FB001_700k.flv
22:07:47 M: 24043520 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
22:07:47 M: 24043520 NOTICE: CDVDPlayer::OnExit()
22:07:47 M: 24043520 NOTICE: CDVDPlayer::OnExit() deleting input stream
22:07:47 M: 24592384 NOTICE: CDVDPlayer::CloseFile()
22:07:47 M: 24592384 WARNING: CDVDMessageQueue:Tongueut MSGQ_NOT_INITIALIZED
22:07:47 M: 24592384 NOTICE: DVDPlayer: waiting for threads to exit
22:07:47 M: 24592384 NOTICE: DVDPlayer: finished waiting

@developers: Any hint?

sfaxman...


- Evil Elvis - 2009-01-08

sfaxman Wrote:@all other than the xbox platform users having problems running the plugin: I just uploaded a version with a new option for enabling debug logging Nod Can you try it and post the last log messages. It will help localizing the problems Nerd

I turned debug logging for VideoMonkey, and tried to add it as a source, causing it to hang (per usual). I didn't notice anything different in the log file, but here it is:

Code:
17:34:13 T:2804 M:968933376  NOTICE: -->Python Interpreter Initialized<--
17:34:13 T:2804 M:968933376  NOTICE:
17:34:14 T:2804 M:965455872  NOTICE: Creating download directory F:\videos
17:34:14 T:2804 M:965447680  NOTICE: Cannot create download directory
17:34:14 T:2804 M:965447680  NOTICE: Traceback (most recent call last):
17:34:14 T:2804 M:965447680  NOTICE:   File "C:\Program Files\XBMC\plugins\video\VideoMonkey\videomonkey.py", line 1571, in run
17:34:14 T:2804 M:965361664  NOTICE:     os.mkdir(xbmcplugin.getSetting('download_Path'))
17:34:14 T:2804 M:965361664  NOTICE: OSError: [Errno 0] Error: 'F:\\videos'
17:34:14 T:2804 M:965361664  NOTICE: Purging cache directory
17:34:14 T:2804 M:965361664  NOTICE: Cache directory purged
17:34:14 T:2804 M:965369856  NOTICE: sites.list

I didn't look at your code to make sure it wasn't printing out to another file, but I wasn't able to find any new log files anywhere, so I'm assuming it was supposed to print to xbmc.log


- sfaxman - 2009-01-08

Evil Elvis Wrote:I didn't look at your code to make sure it wasn't printing out to another file, but I wasn't able to find any new log files anywhere, so I'm assuming it was supposed to print to xbmc.log

OK. The resource directory path must be wrong. The next message should be:
Local file ...resource directory path...\sites.list opened

Can you make a retry now Rofl (I just added more outputs)

sfaxman...


- sfaxman - 2009-01-08

sfaxman Wrote:I played a bit with RTLNow and xbmc seems to have problems with the rtmp streams of this site Oo
sfaxman...

May be i must just set the item attributes "SWFPlayer", "PageURL", and "PlayPath". But do not know yet how Sad
To be continued Laugh ...

sfaxman...


- phazey - 2009-01-08

Running the new build on a macbook, i get possibly one of the most helpful log messages ever.......

Code:
07:27:38 T:2690221856 M:423047168 WARNING: CUtil::GetMatchingSource... no matching source found for [Video Plugins]
07:27:45 T:2961149952 M:414978048  NOTICE: -->Python Interpreter Initialized<--
07:27:45 T:2961149952 M:414978048  NOTICE:



- Evil Elvis - 2009-01-08

sfaxman Wrote:OK. The resource directory path must be wrong. The next message should be:
Local file ...resource directory path...\sites.list opened

Can you make a retry now Rofl (I just added more outputs)

sfaxman...


Nope.

Code:
21:40:19 T:1272 M:962498560  NOTICE: -->Python Interpreter Initialized<--
21:40:19 T:1272 M:962498560  NOTICE:
21:40:20 T:1272 M:957788160  NOTICE: Cache directory: C:\Program Files\XBMC\plugins\video\VideoMonkey\cache
21:40:20 T:1272 M:957788160  NOTICE: Resource directory: C:\Program Files\XBMC\plugins\video\VideoMonkey\resources
21:40:20 T:1272 M:957788160  NOTICE: Image directory: C:\Program Files\XBMC\plugins\video\VideoMonkey\resources\images
21:40:20 T:1272 M:957788160  NOTICE: Creating cache directory C:\Program Files\XBMC\plugins\video\VideoMonkey\cache
21:40:20 T:1272 M:957779968  NOTICE: Cache directory created
21:40:20 T:1272 M:957779968  NOTICE: Creating download directory F:\videos
21:40:20 T:1272 M:957779968  NOTICE: Cannot create download directory
21:40:20 T:1272 M:957779968  NOTICE: Traceback (most recent call last):
21:40:20 T:1272 M:957779968  NOTICE:   File "C:\Program Files\XBMC\plugins\video\VideoMonkey\videomonkey.py", line 1581, in run
21:40:20 T:1272 M:957779968  NOTICE:     os.mkdir(xbmcplugin.getSetting('download_Path'))
21:40:20 T:1272 M:957779968  NOTICE: OSError: [Errno 0] Error: 'F:\\videos'
21:40:20 T:1272 M:957779968  NOTICE: Purging cache directory
21:40:20 T:1272 M:957779968  NOTICE: Cache directory purged
21:40:20 T:1272 M:957816832  NOTICE: sites.list



- Evil Elvis - 2009-01-08

Ok, I've tracked down the exact line of code that's causing the hang, but I haven't investigated as to why:

Code:
def loadLocal(self, filename, recursive = True, lItem = None, lCatcher = False):
        if enable_debug:
            xbmc.output(str(filename))
        try
            f = codecs.open(str(xbmc.translatePath(os.path.join(resDir, filename))), 'r', 'utf-8')

It's the codecs.open(...) part, around line 743 of videomonkey.py



edit: a few things

1) I'm not sure if xbmc.translatePath() is supposed to modify the path for windows users, but it doesn't

2) os.path.join(resDir, filename) gives me this: C:\Program Files\XBMC\plugins\video\VideoMonkey\resources\sites.list
This isn't a valid path for python's default open() method, as the backslashes need to be escaped out to this: C:\\Program Files\\XBMC\\plugins\\video\\VideoMonkey\\resources\\sites.list. I'm not sure if codecs.open() handles this for you, but I thought I should mention it.

3) When I replaced codecs.open with the following, it sort of worked: f = open('C:\\Program Files\\XBMC\\plugins\\video\\VideoMonkey\\resources\\sites.list', 'r')
It no longer hangs, but it didn't appear to work correctly either. It just displayed live, live, tv, tv, more, more. Going into these sub-directories just printed the same stuff. I'm guessing the codecs.open is doing something here, but the fact that it worked might tell you something that my cursory glance didn't.


- phazey - 2009-01-08

Just re-ran the plugin, got more logging this time for some reason:

Code:
12:30:50 T:2690221856 M:458674176   DEBUG: Clearing cached fileitems [plugin://video/VideoMonkey 2/]
12:30:50 T:2690221856 M:464670720   DEBUG: CGUIMediaWindow::GetDirectory (plugin://video/VideoMonkey 2/)
12:30:50 T:2690221856 M:464670720   DEBUG:   ParentPath = [plugin://video/]
12:30:50 T:2690221856 M:464670720   DEBUG: GetDirectory - URL for plugin settings: VideoMonkey 2/
12:30:50 T:2690221856 M:464670720   DEBUG: GetDirectory - calling plugin /Users/phazey/Library/Application Support/XBMC/plugins/video/VideoMonkey 2/default.py('plugin://video/VideoMonkey 2/','0','')
12:30:50 T:2690221856 M:464666624    INFO: initializing python engine.
12:30:50 T:2690221856 M:464666624   DEBUG: Loading: /Applications/XBMC.app/Contents/Resources/XBMC/system/python/python24-osx.so
12:30:52 T:2690221856 M:462462976   DEBUG: new python thread created. id=1
12:30:52 T:2962280448 M:462458880   DEBUG: Running thread 2962280448
12:30:52 T:2690221856 M:462458880   DEBUG: WaitOnScriptResult - waiting on the VideoMonkey 2 plugin...
12:30:52 T:2962280448 M:462458880   DEBUG: thread start, auto delete: 0
12:30:52 T:2962280448 M:462458880   DEBUG: Python thread: start processing
12:30:52 T:2962280448 M:462045184  NOTICE: -->Python Interpreter Initialized<--
12:30:52 T:2962280448 M:462053376  NOTICE:
12:30:53 T:2690221856 M:458596352    INFO: Loading skin file: DialogProgress.xml
12:30:53 T:2690221856 M:458940416   DEBUG: Load DialogProgress.xml: 5.16ms
12:30:53 T:2690221856 M:458788864   DEBUG: ------------------- GUI_MSG_WINDOW_INIT
12:30:53 T:2690221856 M:458739712   DEBUG: Progress dialog
12:30:53 T:2690221856 M:458690560   DEBUG: -------------------
12:30:53 T:2690221856 M:458776576   DEBUG: Alloc resources: 10.65ms (0.04 ms skin load, 0.09 ms preload)
12:30:54 T:2962280448 M:457859072    INFO: Stating open file
12:30:54 T:2962280448 M:457859072    INFO: Stating open file
12:30:54 T:2962280448 M:457752576    INFO: Stating open file



- angryjack - 2009-01-08

sfaxman Wrote:May be i must just set the item attributes "SWFPlayer", "PageURL", and "PlayPath". But do not know yet how Sad
To be continued Laugh ...

sfaxman...

Is the link valid that you posted ? I cannot open it with VLC player

angryjack


- sfaxman - 2009-01-08

OK guys, i can test now under XBOX, windows and linux. The issues for these platforms will be fixed in the next hours (if not already done Big Grin The current version works for me without problems).

I removed xbmc.transletePath() as i saw no resentment under linux. This function should do nothing under windows and XBOX (Correct me if i'm wrong).

Evil Elvis Wrote:1) I'm not sure if xbmc.translatePath() is supposed to modify the path for windows users, but it doesn't
This is OK. It is the expected behavior Nod
Evil Elvis Wrote:2) os.path.join(resDir, filename) gives me this: C:\Program Files\XBMC\plugins\video\VideoMonkey\resources\sites.list
This isn't a valid path for python's default open() method, as the backslashes need to be escaped out to this: C:\\Program Files\\XBMC\\plugins\\video\\VideoMonkey\\resources\\sites.list. I'm not sure if codecs.open() handles this for you, but I thought I should mention it.
Only when you write the paths directly into the code Nerd
phazey Wrote:Running the new build on a macbook, i get possibly one of the most helpful log messages ever.......

Code:
07:27:38 T:2690221856 M:423047168 WARNING: CUtil::GetMatchingSource... no matching source found for [Video Plugins]
07:27:45 T:2961149952 M:414978048  NOTICE: -->Python Interpreter Initialized<--
07:27:45 T:2961149952 M:414978048  NOTICE:
I'm really sorry phazey Blush Try enabling the xbmc debug logging (Settings->System->Enable Debug Logging). May be we can see a more helpful log Rofl

sfaxman...