XBMC Community Forum
Video Devil plugin status? - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: Video Devil plugin status? (/showthread.php?tid=58892)

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


- The-Boxhead - 2010-12-27 02:37

Okay enabled and hopefully recorded
but i cant seem to figure out where the log file gets stored ?

i have looked in the usual places, what is it named ?


- Bootsy - 2010-12-27 13:25

it´s written to the xbmc.log


- The-Boxhead - 2010-12-28 01:25

ahh stupid me Smile

sorry for the wait. Just did a run with moviesand the second video caused xbmc to become unresponsive..

log:
http://pastebin.com/dQ3h1pwc

Does it give you any clues ? still i see errors regarding pulseaudio Wink


- dobbelina - 2011-01-09 02:58

I can't get the "Download Video" feature to work ?
Even if "Save video" is enabled in the settings, with downloadpath.
(Using v1.6.7 on Dharma 10.0 Win7 64 bit)
It executes and then the downloadpath is empty.
When switching to filemode using copy,it gives the same result.

For some strange reason, a few FLV videos ended up in the XBMC root folder ??

Would really like this feature to work, or if anybode else has any alternative
solutions for a groin athlete as myself Big Grin


- dobbelina - 2011-01-21 09:18

Thanks to one developer here i got a nice solution to the d/l problem.
Don't want to mention his name, as he might wanna be anonymous.
(Thanks anyway for this)

This makes use of Bitcomet as a d/l agent, that gets the d/l links parsed
from a small Autoit script(.exe)
This is great, as one or several downloads can be started in the
background, without interrupting xbmc.
Just rightclick the video in videodevil, and choose "Save video".

Do like this:

1. D/l Bitcomet as an zip package.

2. Extract the contents of the archive to a place of your choice.
Start up Bitcomet and choose a "Default download location".
You can then shut it down.

3. D/l the precompiled dl.exe from Here

4. Put the dl.exe in the same folder as Bitcomet.exe

5. Edit videodevil.py as explained in "Videodevil Edit.txt" found in archive above.(special attention to paths)

(The dl.au3 file is the Autoit script used to compile dl.exe, it's inside the archive as well)
dl.au3
http://pastebin.com/9XNkkCQd
function in videodevil.py you have to replace
def downloadMovie(self, url, title):
http://pastebin.com/iRafKxXL


- Scorpius - 2011-01-24 09:27

I think I found the reason of the problem. If I remove the listitem argument from the player, it never hangs. That is I changed the videodevil.py the playVideo function like this:
Code:
if flv_file != None and os.path.isfile(flv_file):
            if enable_debug:
                xbmc.output('Play: ' + str(flv_file))
#           xbmc.Player(player_type).play(str(flv_file), listitem)
            xbmc.Player().play(str(flv_file))
        else:
            if enable_debug:
                 xbmc.output('Play: ' + str(url))
#           xbmc.Player(player_type).play(str(url), listitem)
            xbmc.Player().play(str(url))

And that always work and no more hangs. This info is for the developer of course. I think the real problem is:
Code:
listitem.setInfo('video', {'Title':title})
        for video_info_name in videoItem.infos_names:
            try:
                listitem.setInfo(type = 'Video', infoLabels = {video_info_name: videoItem.infos_values[videoItem.infos_names.index(video_info_name)]})
            except:
                pass

Maybe there's need of more validation there to be sure that listitem is valid before putting it into Player.play(). I don't know.

Since I'm not sure what is that listitem for and since nobody else use it in their addons (of several I checked), I removed it from the Player.play() function and everything works as a charm.


- dobbelina - 2011-01-24 19:28

Scorpius Wrote:I think I found the reason of the problem. If I remove the listitem argument from the player, it never hangs. That is I changed the videodevil.py the playVideo function like this:
Code:
if flv_file != None and os.path.isfile(flv_file):
            if enable_debug:
                xbmc.output('Play: ' + str(flv_file))
#           xbmc.Player(player_type).play(str(flv_file), listitem)
            xbmc.Player().play(str(flv_file))
        else:
            if enable_debug:
                 xbmc.output('Play: ' + str(url))
#           xbmc.Player(player_type).play(str(url), listitem)
            xbmc.Player().play(str(url))


Nice, i'll try it out, as i have also noticed the "hard hangs" that happen kinda randomly.

Here's an update on the "External Bitcomet Download" agent, as outlined in
post #95

No need for dl.exe anymore.
Just edit videodevil.py as follows:

Add this line on top of file:
Code:
import subprocess

Replace downloadMovie function def downloadMovie(self, url, title):

With this:
Code:
def downloadMovie(self, url, title):
        cmdarg = unquote_safe(url)
        cmdapp = 'C:/Test/BitComet.exe --url=' + '"'+cmdarg+'" --silent'
        kwargs = {}
        su = subprocess.STARTUPINFO()
        su.dwFlags |= subprocess.STARTF_USESHOWWINDOW
        su.wShowWindow = subprocess.SW_HIDE
        kwargs['startupinfo'] = su
        process = subprocess.Popen( cmdapp, **kwargs )
        return None
(Don't forget to edit path to Bitcomet before copy & paste)


- dobbelina - 2011-01-25 20:48

Scorpius Wrote:I think I found the reason of the problem. If I remove the listitem argument from the player, it never hangs.

I tried your fix, and i have not seen any crash (so far). Nod
With unedited videodevil.py, and with debugging option "On", it seems the failure reason never has a chance to get written to the log, as the crash
prevents it...

I do see a few other errors further up the log, but they aren't
fatal.
Or at least they don't ruin the functionality.


- Scorpius - 2011-01-26 04:35

dobbelina Wrote:I tried your fix, and i have not seen any crash (so far). Nod
With unedited videodevil.py, and with debugging option "On", it seems the failure reason never has a chance to get written to the log, as the crash
prevents it...

That's because it is not the videodevil plugin that crashes, but the XBMC Player. That's why you don't see anything in the log.

There should be a line in the videodevil debug that is shown just before calling the XBMC.Player with the argument info. Maybe the items list is way too long or something. You should have realized that your first video never crashes. I think the item list is growing while you play more and more videos, and eventually it crashes the player. Since every site has different items, the user experience is different depending what sites you use until you get the crash.

That's my speculation, we need that debug info to know exactly what is sent to XBMC.Player via the listitem argument and what is wrong with it. I could do all the debugging, but I guess the developer would want to do it himself.

What I really wonder now is why he can't reproduce this unavoidable problem for us...

So far I'm happy removing the listitem argument and never getting a crash Big Grin


- dobbelina - 2011-01-26 06:18

Scorpius Wrote:So far I'm happy removing the listitem argument and never getting a crash Big Grin

Me to.
This is the one plugin, where "hanging" is the last thing you want on your mind Laugh