[RELEASE] VideoMonkey - a video plugin for YouTube, Dailymotion, and everything else!

  Thread Rating:
  • 4 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #31
sfaxman Wrote:right click -> plugin settings

... right click is the 'white' button of the joystick or the 'title' button of the remote. Have you edited the xml file manually everytime you wanted the change the player Eek ?

sfaxman...
find quote
badticket Offline
Junior Member
Posts: 13
Joined: May 2007
Reputation: 0
Post: #32
Hi,

adult "contents" does not work for me... No even when the plug configuration allows it... most interesting cause XBMC rarity...

XBMC from 15.07.

Greetz
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #33
Maybe it will be good to provide PLAYER_CORE_AUTO in the plugin settings. Then we will have:

- PLAYER_CORE_AUTO
- PLAYER_CORE_DVDPLAYER
- PLAYER_CORE_MPLAYER

PLAYER_CORE_PAPLAYER and PLAYER_CORE_MODPLAYER are not yet mature i think (correct me if i am wrong :sniffleSmile.

sfaxman...
find quote
Horscht Offline
Member
Posts: 91
Joined: Jan 2006
Reputation: 2
Post: #34
Hey, nice sfaxman. Sounds like a realy awesome script!

unfortunatelly, I am not able to run it. I only get an error "Error running VideoMonkey. Reason: list index out of range"

I tried with my "old" june 16th build of XBMC. It go that error and updated assuming there were some changes to the python engine. Still, with july 15th build I get the same error.

I am running the "current" version of your script, dated july 15th as well.
find quote
Horscht Offline
Member
Posts: 91
Joined: Jan 2006
Reputation: 2
Post: #35
Nevermind, realy. I tried running it as a script, i just realized it's a plugin. Smile
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #36
I tested the plugin under windows and no mms stream could be played Stare
Everything else seems to work.

The idea of funkytown has been merged and a couple of pages fixed Rofl

Bye,
sfaxman...
find quote
funkytown Offline
Member
Posts: 67
Joined: Jul 2008
Reputation: 0
Post: #37
Hey everyone!

Danke für die neue version, sfaxman!

I have yet another idea for improvement.
ZDF-Mediathek on XBMC is great. There is one annoying thing though:
When i want to watch the newest episode of a specific show, its hard to find out which item is the most recent, because right now the videos are not sorted by date.
So why not use the power of XBMC by specifing a video-date. This is possible via the listitem.setInfo command:

Code:
listitem.setInfo("video", {"Title":titlevariable, "Date": datevariable})

Now the videos can be sorted by date.

I dont know exactly what date format is expected (a documentation about the plugin api is still missing).
From a quick look at the code of Apple Movie Trailer Plugin, its probably YEAR-MONTH-DAY format.

The date for the ZDF video can be extracted with regex from the json "assetUrl" tag which is e.g.
....zdf.de/zdf/veryhigh/080714_leinhos_hjo.asx
The date of this video is 2008-07-14.

As i am neither good at regex nor python here are just some code snippets to help sfaxman to include this idea in an upcoming release:

in file zdf.de.cfg:

Code:
video_date=assetUrl\":%SOME REGEX EXPRESSION%

in file default.py:

line 775
Code:
# datecatcher = regex from assetUrl so it will read 080714
# postdate = rewrite 080714 to 2008-07-14 which is the format xbmc listitem.setinfo expects
if (video_date != ''):
    try:
        date_catcher = video_date % (url)
    except:
        date_catcher = video_date
     redate = re.compile(date_catcher, re.IGNORECASE + re.DOTALL + re.MULTILINE)
     postdate = 20+"%s-%s-%s" % ( redate[ : 2 ], redate[ 3 : 4 ], redate[ 5 : ], )
     datesearch = postdate.search(data)
     try:
         date = datesearch.group(1)
     except:
         traceback.print_exc(file = sys.stdout)
         date = '0000-00-00'
     tmp.date = date.lstrip().rstrip()
     if (len(tmp.date) == 0):
         tmp.date = '0000-00-00'
line 945
Code:
# add date information of video via setinfo only if date is set ; else only set title
if self.date != '':
    listitem.setInfo("video", {"Title":title, "Date": date})
else:
    listitem.setInfo("video", {"Title":title})
line 1110
Code:
# add sort method "date" to directory only if date is set
if self.date != '':
  xbmcplugin.addSortMethod(handle = self.handle, sortMethod = xbmcplugin.SORT_METHOD_DATE)

Have a nice day! Big Grin
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #38
Hi funkytown,

i am planning to support the itemInfos "Size", "Rating", "Genre", "Duration" and "Date"...
... and the respective sort methods SORT_METHOD_SIZE, SORT_METHOD_GENRE, SORT_METHOD_DURATION, SORT_METHOD_VIDEO_RATING and SORT_METHOD_DATE.

but do not expect them too soon Oo .

Bye,
sfaxman...
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Post: #39
VideoMonkey with YouTube fix is now in the plugins online repository Nod (thx Nuka1195)

>link<

sfaxman...
find quote
sfaxman Offline
Skilled Python Coder
Posts: 155
Joined: Jul 2008
Reputation: 0
Location: Tunisia / Germany
Big Grin  VideoMonkey Release (A new video plugin) Post: #40
Hi friends Big Grin,

Try the new video plugin "VideoMonkey" from here or from the plugins online repository.

I took many ideas from available XBMC PlugIns (Many thanks to every devoloper here).

Everyone with basic RegEx knowledge (like me) can add new video site catchers easily (see file youtube.com.cfg). YouTube (com, de, fr, nl), Dailymotion (com, de, fr, nl), Metacafe and others are included. Adult content can be enabled through the plugin settings. Feel free to post new suggestions or critics.

For technical discussions please use this thread.

Bye,
sfaxman...
find quote
Post Reply