smithgeek / xbmc-dvdextras Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
I have XBMC with my movies on a smb share. I noticed that the plugin did work with lokal "Extra" content but did not find the extra content on smb share.
I activated logs and saw that the networkpath misses a second "/" in the beginning.
For a workaround I added this to Line 377:
...
else:
netpath = re.search(":",sys.argv[1])
if netpath:
path = path
else:
path = "" + path
log( "finding extras for " + sys.argv[1] )
extras.findExtras(path)
...
I am a c++ programmer and have no clou about phyton but it seems to work for me.
Regards,
AlexQ
Thanks for this great add-on!
One thing I'm having problems with is movies with stacked files - e.g. The Lord of the Rings Extended editions and Titanic 2-DVD
The add-on reports "no extras found" when the movie has stacked files.
It works perfectly for movies with only one media file.
I'm thinking it may be an issue with the way XBMC treats these movies/files, since the info screen has the file(s) listed as stack:/.../.../.../.../.../.../.../.../.../.../.../.../.../[filename]
Love your script! Discovered in my Windows system it will not find Extras for videos with a "," (comma) in the name of the folder (it doesn't matter if one is in the name). For movie folders w/o a comma in them, it finds them just fine. Can you make an update?
e.g. "M:\Movies\Magnificent Seven, The"
Some other notes:
I've been playing around with trying to 'hide' the 'Extras' button within the DialogVideoInfo dialog when no Extras directory is found. I'm trying to add one more validation to return a 'True' by checking to see if the Extras directory has any files in it. Presumably it returns False if it can't find one(?). Below is the closest I've gotten, but it still is not working. Any suggestions by a real programmer?
[Container.Content(movies) | Container.Content(episodes)] + System.HasAddon(script.dvdextras) + Container($INFO[ListItem.Path]Extras).HasFiles
The $INFO returns a "M:\Movie\MovieName\Extras" path name, but perhaps I cannot use the Container call to reference files outside the database...(?)
One other thing, I modified the python theme script to accept WMA files since I still have a few of those floating around in my system.
return Searcher().getMatchingFiles( directory, "theme.*.(mp3|wma)", False )
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.