• 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 8
[RELEASE] YouTrailer (Script) - Movie Trailers
#61
Stien Wrote:Why not use the built in library function of XBMC. From what i understand you use an external program to build a .nfo file. XBMC can store all the info in an database. Which is far more versatile than an .nfo file from my point of view.
I use the built in library, but i use a scraper that get information from local files. This way i got a folder for each movie with all the information in it. I can then use a client program to edit all this information on my main computer. I find this much easier then working directly on the htpc with XBMC.
Reply
#62
Could anyone help me with the solution for ShowMix?

What I've got so far:

Code:
                <control type="button" id ="11">
                    <description>Trailer</description>
                    <posx>512</posx>
                    <posy>0</posy>
                    <width>135</width>
                    <height>29</height>
                    <!-- <label>20410</label> -->
                    <label>31409</label>
                    <align>center</align>
                    <include>Objects_FSInfoButton</include>
                    <onleft>12</onleft>
                    <onright>5</onright>
                    <onup>50</onup>
                    <ondown>50</ondown>
                </control>
Reply
#63
How do I edit the DialogVideoInfo.xml file? When I login via WinSCP it won't let me overwrite anything in the .usr/share directory. And there's multiple locations for each skin. Where's the actual one you're supposed to edit?

I'm using a live install.

Thanks for any help.
Reply
#64
RXP91 Wrote:How do I edit the DialogVideoInfo.xml file? When I login via WinSCP it won't let me overwrite anything in the .usr/share directory. And there's multiple locations for each skin. Where's the actual one you're supposed to edit?

I'm using a live install.

Thanks for any help.

You either need to have root acces or edit the skin folder in your home directory

/home/xbmc/.xbmc/skin/confluence

Still no update on the "failed to acces xbmc database"?
Reply
#65
Hi,

is there a possibility to implement this in Aeon Hitched? I added the scripts to the proper folder, changed the xml file, but when pressing the trailer button XBMC freezes.

Now what would be really awesome if I'm in multiplex view and press down as usually for starting trailers it plays the trailer in that window. Anybody an idea, I'm pretty new to XBMC so treat like a noob =)
Reply
#66
I'm running XBMC Live and getting the same Database errors.

I noticed when YouTrailer runs its sqlite query it gets back a NoneType object. For whatever reason using the IMDB scraper I was ending up with Year set to 0. This was causing the query to fail. By removing the year query XBMC started crashing.

cursor.execute( "SELECT c09, c19 FROM movie WHERE c00 = ? AND c15 = ?", (self.movie_info['Title'], self.movie_info['Director']) )

Progress!

I set it to debug mode and the trailer actually worked. So something about debug mode causes the script not to crash.

Hopefully this helps somebody figure it out for real because I think I'm done looking into it.

EDIT: Update your scraper guys. The 9.11 live imdb scraper doesn't update the year properly. See http://forum.xbmc.org/showthread.php?tid=70076
Reply
#67
That seems to be the fix for the "failed to acces xbmc database" error.

Now i keep getting:

"trailer has been removed"

-edit-
It seems the trailer link is fetched from TMDb.org. Seems that the links posted there are not updated or fixed to keep up with youtube removing copyright clips.
Reply
#68
For people getting a "Can't access XBMC database"

Open the "main.py" file and replace the fetchInfoLabels function with this:

def fetchInfoLabels( self ):
self.movie_info['Title'] = xbmc.getInfoLabel( 'listitem.title' )
self.movie_info['Director'] = xbmc.getInfoLabel( 'listitem.director' )
self.movie_info['Year'] = xbmc.getInfoLabel( 'listitem.year' )
if(self.movie_info['Year'] == ""):
self.movie_info['Year'] = "0";
self.movie_info['Genre'] = xbmc.getInfoLabel( 'listitem.genre' )
self.movie_info['Thumb'] = xbmc.getInfoLabel( 'ListItem.Thumb' )

I never noticed if the movie has no year in the xbmc nfo then xbmc stores the year as "0" in the database.
Hence the:
if(self.movie_info['Year'] == ""):
self.movie_info['Year'] = "0";


And yes, TMDB has alot of broken links, please register and help replace them with correct ones Big Grin
Reply
#69
Oh, just read my comments and codexile is on to it Big Grin

The 9.11 live imdb scraper doesn't update the year properly - that would explain it.
I always used ember to scrape so this never became an issue
Reply
#70
Does your script already work with the new XBMC Addons system?
Reply
#71
Never tried it.
I am re-writing it at present so it would be good to aim for this.
Is there any documentation for scripts for the new system?
Reply
#72
should start here:
http://wiki.xbmc.org/index.php?title=Category:Add-ons

it's not really hard to adapt.
Reply
#73
stanley87 Wrote:For people getting a "Can't access XBMC database"

Open the "main.py" file and replace the fetchInfoLabels function with this:

def fetchInfoLabels( self ):
self.movie_info['Title'] = xbmc.getInfoLabel( 'listitem.title' )
self.movie_info['Director'] = xbmc.getInfoLabel( 'listitem.director' )
self.movie_info['Year'] = xbmc.getInfoLabel( 'listitem.year' )
if(self.movie_info['Year'] == ""):
self.movie_info['Year'] = "0";
self.movie_info['Genre'] = xbmc.getInfoLabel( 'listitem.genre' )
self.movie_info['Thumb'] = xbmc.getInfoLabel( 'ListItem.Thumb' )

I never noticed if the movie has no year in the xbmc nfo then xbmc stores the year as "0" in the database.
Hence the:
if(self.movie_info['Year'] == ""):
self.movie_info['Year'] = "0";


And yes, TMDB has alot of broken links, please register and help replace them with correct ones Big Grin

Tried it and there's no "Can't access XBMC database" anymore... unfortunately nothing else happens when I press the Trailer button Sad
(Windows 7, 64bit)
Reply
#74
Iv started from scratch as i have since discovered OOP and want to redo the script with that in mind Big Grin
I can do the coding but not so good at the UML :-(
If anyone could give me a hand doing up a good UML, that would be great
Reply
#75
Uml ?
Reply
  • 1
  • 3
  • 4
  • 5(current)
  • 6
  • 7
  • 8

Logout Mark Read Team Forum Stats Members Help
[RELEASE] YouTrailer (Script) - Movie Trailers0