Media Companion

Discussion and development board for the program Media Companion.
 
HomeHome  FAQFAQ  SearchSearch  RegisterRegister  Log inLog in  

Share | 
 

 way to update xmbc library

View previous topic View next topic Go down 
Goto page : 1, 2  Next
AuthorMessage
mrbassman12
New User
New User


Posts: 4
Join date: 2009-07-22

PostSubject: way to update xmbc library   Wed Jul 22, 2009 4:51 pm

I was thinking it would be nice to be able to update the xbmc library from within media companion.

for example... my setup now is that I have two user profiles on my htpc. one called media that is always on, with xbmc up and is attached to the tv. then an admin profile that I can remote into (after patching to enable concurrent remote sessions) to do any maintenance without disturbing xbmc.

So what I do now is just run

http://myLogin:myPassword@myWebserverAddress:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary(video)

in the browser to update xbmc remotely through its webserver after I am done tagging new media with media companion.

This works fine, but would be nice to have this command (or something similar) attached to a button or menu item in media companion so that media could be tagged and updated in xbmc all in one simple place
Back to top Go down
View user profile
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 12:29 am

Yes this would be a handy feature of MC....

As an interum, I guess I could create an internet shortcut or bookmark so that I could remotely update the XBMC library but having it incorporated in MC would be ideal.

Thanks for letting us know about this. I'm assuming it will also work just as well on an actual xbox....I will give it a go & find out I guess...

The full list of commands can be found here on the XBMC Wiki...

http://www.xbmc.org/wiki/?title=WebServerHTTP-API
Back to top Go down
View user profile
Wizerd
Media Companion Supporter
Media Companion Supporter


Posts: 125
Join date: 2008-09-22
Location: Ontario, Cananda

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 1:37 am

I think this would be a great feature as well. At one point there was talk of having MC export the video DB for XBMC to save even more time. (Rather than doing updates..just copy the exported db over)
Back to top Go down
View user profile
mrbassman12
New User
New User


Posts: 4
Join date: 2009-07-22

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 3:34 am

affecting tags at the DB level would be amazing, whether its directly or through an export.

Even with nfo support, xbmc still isnt perfect with its scraping. Its frustrating to spend all this time getting my nfo files set up perfectly, only to have xbmc still puke on a few of them anyway. so yea, some level of DB support would be really cool.
Back to top Go down
View user profile
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 9:44 am

Yes I think the Ultimate goal would be the direct editing of the XBMC database & I think it was mentioned as such.

..but this would be an intermediate step & I assume easy to implement.....


Just slightly of this topic, but anyone know why XBMC takes so long to scrape movies even though the .nfo's are provided for it?

I would have thought it should be rather quick.......

Also .....is there a way to stop my XBOX from being able to access the internet, but still scrape using nfos?

Thanks
Back to top Go down
View user profile
Bacheus
New User
New User


Posts: 9
Join date: 2009-06-25

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 12:16 pm

StormyKnight wrote:
Yes I think the Ultimate goal would be the direct editing of the XBMC database & I think it was mentioned as such.

..but this would be an intermediate step & I assume easy to implement.....


Just slightly of this topic, but anyone know why XBMC takes so long to scrape movies even though the .nfo's are provided for it?

I would have thought it should be rather quick.......

Also .....is there a way to stop my XBOX from being able to access the internet, but still scrape using nfos?

Thanks

http://www.xbmc.org/wiki/?title=Import_-_Export_Library#Video_nfo_Files

Video nfo Files
Nfo files can be used to provide data for a video file in XBMC or influence the search behavior of scrapers. In particular they are helpful if the information fetched from a web site does not match the video file, or data for that particular file does not exist.

By default at the time of scanning, if the media folder contains a correctly named *.nfo file, then XBMC will load the *.nfo file and attempt to either, in the case of it containing XML data get the metadata directly from the nfo file or will parse it for a direct URL to the scraper info page. This allows XBMC to skip it's normal lookup and/or search procedures, useful if a file's information is not available on any of the scraper sites, or if the filematching criteria fails for the particular file.

XBMC will take the data from the nfo file if its there. XBMC will scrape the internet again is there is any missing data.
you can disable the content on the folder, that way XBMC wont scrape the internet an try top get everyting only from the nfo file. but then you could be missing some info.

How many movie do you have. i have around 250 and it takes +- 5 minutes
Back to top Go down
View user profile
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 12:36 pm

I only have 100 movies + 1000 episodes....I always had a suspicion that XBMC was still accessing the internet when MC should be doing all the work it needs....

If I could stop XBMC from seeing the internet, then I could work out what MC is not providing...if anything.

I also need a way to confirm that the actor thumbnails are also working as MC intends...

When I get a chance I will also remove the scrapper from my movies & TV folders, but I thought then that then wouldn't be added to the Library?
Back to top Go down
View user profile
Bacheus
New User
New User


Posts: 9
Join date: 2009-06-25

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 2:00 pm

you will be right about the content, it won't be added to the libary.

if you have 1000 episoded it will take some time.

here you can check all the nfo date there is.
i'm not sure if MC nfo files is gettint all these. I still need to check them

http://code.google.com/p/moviejukebox/wiki/NFO_Files
Back to top Go down
View user profile
mrbassman12
New User
New User


Posts: 4
Join date: 2009-07-22

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 3:22 pm

I agree... I've got a pretty big collection of video content and I dont see any reason why it should take xbmc 12+ hrs to parse a bunch of nfo files. Something is fishy.
Back to top Go down
View user profile
billyad2000
Admin


Posts: 1326
Join date: 2008-09-20

PostSubject: Re: way to update xmbc library   Thu Jul 23, 2009 9:06 pm

Firstly, to assign the updatte command to a button woud be fairly easy and i'll look into it.

As to the time for xbmc scraping, I use an XBox for the purpose and it does take its time. I've always put it down to XBMC downloading actor thumbnails from IMDB, and it also resizes any posters. I also have XBMC installed on a windows PC and it took far less time.

The nfo file is perfectly legit, the only real gripe I have is that multiple poster urls stored in the nfo have to be within a single <thumb> tag, check one if you dont believe me.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Fri Dec 04, 2009 10:42 am

Billy, any chance of revisting a method for us to remotely update XBMC library......

BTW, I have two xbox's it would be nice to be able to handle more than 1 device running xbmc, either by being able to enable/disable devices before pushing the update button....

Cheers
Back to top Go down
View user profile
billyad2000
Admin


Posts: 1326
Join date: 2008-09-20

PostSubject: Re: way to update xmbc library   Sun Dec 06, 2009 9:33 am

As soon as I figure out a way to do this then I will.

The simplest way would be to create a videodb.xml file that can be imported by XBMC.

I've created a mockup of such an xml file below, in this case it contains 1 movie, and 1 TV show with a single episode. Creating such a file would be simplicity.

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<videodb>
    <movie>
        <title></title>
        <rating></rating>
        <year></year>
        <top250></top250>
        <season></season>
        <episode></episode>
        <displayseason></displayseason>
        <displayepisode></displayepisode>
        <votes></votes>
        <outline></outline>
        <plot></plot>
        <tagline></tagline>
        <runtime></runtime>
        <thumb></thumb>
        <mpaa></mpaa>
        <watched></watched>
        <file></file>
        <path>smb://workgroup;user:password@computername/Movies/</path>
        <id>tt0416449</id>
        <filenameandpath>smb://workgroup;user:password@computername/Movies/300.avi</filenameandpath>
        <genre>Action / Drama / History / War</genre>
        <credits>Zack Snyder / Kurt Johnstad</credits>
        <director>Zack Snyder</director>
        <premiered></premiered>
        <status></status>
        <code></code>
        <aired></aired>
        <studio>Warner Bros. Pictures</studio>
        <actor>
            <name></name>
            <role></role>
       <thumb></thumb>
        </actor>
    </movie>
    <tvshow>
        <title></title>
        <rating></rating>
        <year></year>
        <votes></votes>
        <outline></outline>
        <plot></plot>
        <tagline></tagline>
        <runtime></runtime>
        <thumb></thumb>
        <mpaa></mpaa>
        <file></file>
        <path>smb://workgroup;user:password@computername/TV/24/</path>
        <id></id>
        <filenameandpath></filenameandpath>
        <genre>Drama</genre>
        <credits></credits>
        <director></director>
        <premiered>1997-05-01</premiered>
        <status></status>
        <code></code>
        <aired></aired>
        <studio></studio>
        <actor>
            <name></name>
            <role></role>
       <thumb></thumb>
        </actor>
        <episodedetails>
            <title></title>
            <rating></rating>
            <year></year>
            <top250></top250>
            <season></season>
            <episode></episode>
            <displayseason></displayseason>
            <displayepisode></displayepisode>
            <votes></votes>
            <outline></outline>
            <plot></plot>
            <tagline></tagline>
            <runtime></runtime>
            <thumb></thumb>
            <mpaa></mpaa>
            <file></file>
            <path>smb://workgroup;user:password@computername/TV/24/</path>
            <id></id>
            <filenameandpath>smb://workgroup;user:password@computername/TV/24/24 - S01E01.avi</filenameandpath>
            <genre></genre>
            <credits></credits>
            <director></director>
            <premiered></premiered>
            <status></status>
            <code></code>
            <aired></aired>
            <studio></studio>
            <album></album>
        </episodedetails>
    </tvshow>
</videodb>


The only issue I have is related to the <path> and <filenameandpath> tags.

While the filenames will remain unchanged, the actual path can be relative, eg.
The path to the file from xbmc over a network could look something like;
"smb://workgroup;user:password@computername/TV/24/24 - S01E01.avi"
but the path from MC would be;
"G:\TV\24\24 - S01E01.avi"
With no way for MC to know the XBMC path.

I did implement a system that I thought may work as a way for people to cache actor thumbs by using path substitution eg.
Replace
"G:\TV\24\"
with
"smb://workgroup;user:password@computername/TV/24/"
and in years gone by when MC needed to have a user enter these paths manually into the config file it would have been an obvious method, but nowadays MC deals adds these paths automatically and it can be complicated, especially for novices. People dont want to have to mess around with such settings manually.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Sun Dec 06, 2009 9:40 am

Sorry Billy, I was only suggesting we had a button or buttons to send the web request to XBMC to update library....


I assume what you have detailed here, will get XBMC to recreate the whole library from this one xml...

Well I'm fine with path substitution if you think it will be much quicker than the current XBMC update process... Smile
Back to top Go down
View user profile
billyad2000
Admin


Posts: 1326
Join date: 2008-09-20

PostSubject: Re: way to update xmbc library   Sun Dec 06, 2009 9:52 am

StormyKnight wrote:
Sorry Billy, I was only suggesting we had a button or buttons to send the web request to XBMC to update library....


I assume what you have detailed here, will get XBMC to recreate the whole library from this one xml...

Well I'm fine with path substitution if you think it will be much quicker than the current XBMC update process... Smile


It would be much quicker, seems that it will not be possible though.

I run XBMC on an XBox, and it runs out of RAM before the export is complete. It gets as far as the movies beginning with Ts, guess my collection has grown beyond an XBox.

_________________
Do you have a problem with Media Companion, before posting a bug then please check you have the very latest version of Media Companion http://billyad2000.darkbb.com/announcements-f1/
Back to top Go down
View user profile http://billyad2000.co.uk
StormyKnight
VIP
VIP


Posts: 556
Join date: 2008-10-08
Location: Australia

PostSubject: Re: way to update xmbc library   Sun Dec 06, 2009 10:23 am

billyad2000 wrote:
I run XBMC on an XBox, and it runs out of RAM before the export is complete. It gets as far as the movies beginning with Ts, guess my collection has grown beyond an XBox.


No worries Billy, the way XBMC is going it has grown beyond the xbox.... Shocked


Any chance of getting a button to send this thru to the xbox's...


http://myLogin:myPassword@myWebserverAddress:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.updatelibrary

Cheers
Back to top Go down
View user profile
 

way to update xmbc library

View previous topic View next topic Back to top 
Page 1 of 2Goto page : 1, 2  Next

 Similar topics

-
» Update News
» Mx-key v3.5 revision 1.2, Public-Release - MAJOR UPDATE - The only BOX with TMA included
» Infinity CDMA tool New Update 1.49( For Infinity cdma dongle owners only )
» way to update xmbc library
» Getting the stuff into the XMBC Library???

Permissions in this forum:You cannot reply to topics in this forum
Media Companion :: Media Companion :: Feature Requests-