Missing Movie Scanner

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
null_pointer Offline
Member
Posts: 62
Joined: Oct 2011
Reputation: 0
Post: #21
solidsatras Wrote:The picture i used wasn´t the best choice, i wanted to show null_pointer how
the dialog looks in Transparency and describe my problem.
Here is another screenshot with the two empty rows:

Edit:
Just tested with Confluence with the same result:

Hmm yeah that looks like it should be showing you two missing files but the file name strings are empty. This look like it could be a bug.

Can you turn on logging in the Missing Movie Scanner Add-on settings, do the scan again and then put the XBMC log on http://pastebin.com/ link it here and I will have a look.
find quote
null_pointer Offline
Member
Posts: 62
Joined: Oct 2011
Reputation: 0
Post: #22
Adding 'i' do scraper search.

http://forum.xbmc.org/showthread.php?tid=89245

It looks like there is no way to use the scrapers from within an add-on, the Movie Info "i" action will bring up a Scraper Search but it looks like this is a feature of the in built xbmc file browser, if no info exists when you hit 'i' it does a scraper scan for you for that item. Unfortunately it does not look like this feature is available from within add-ons.
find quote
solidsatras Offline
Senior Member
Posts: 289
Joined: Mar 2010
Reputation: 10
Post: #23
solidsatras Wrote:My logfile is fairly big so i uploaded it here:
http://www.mediafire.com/?oi13l4cdj0ebt7y

I would have to split the log in 6 pieces for pastebin.com ...
find quote
null_pointer Offline
Member
Posts: 62
Joined: Oct 2011
Reputation: 0
Post: #24
I need to L2R you already posted the logs I missed it sorry.

Would have posted sooner but the forum has been unavailable for me due to name resolution issues, I think xbmc are changing their dns provider.

I have made a few changes (3.0.2) to address your issues:

- use json.loads() instead of eval() to parse json responces
- show full path in results
- fix a bug with multipath sources
find quote
Martijn Online
Team-XBMC
Posts: 7,705
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #25
Me again Big Grin

You have an unicode issue in you script
http://paste.ubuntu.com/791185/

Possible sollutions:
1.
PHP Code:
json_response unicode(json_response,'utf-8'errors='ignore'
This will ignore those characters and leave them out.

2.

https://github.com/paddycarey/script.art.../issues/44

3.
There may be others as well.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
(This post was last modified: 2012-01-03 06:44 by Martijn.)
find quote
null_pointer Offline
Member
Posts: 62
Joined: Oct 2011
Reputation: 0
Post: #26
I will switch back to eval for now then.
find quote
Martijn Online
Team-XBMC
Posts: 7,705
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #27
null_pointer Wrote:I will switch back to eval for now then.

had the same problem with our add-on (and other add-on had the same).
We just use option one.

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
null_pointer Offline
Member
Posts: 62
Joined: Oct 2011
Reputation: 0
Post: #28
So just to confirm, json.loads() screwes up the conversion?
json.loads() returns wrongly formatted unicode strings or is it returning utf-8 instead of unicode?
find quote
Martijn Online
Team-XBMC
Posts: 7,705
Joined: Jul 2011
Reputation: 114
Location: Dawn of time
Post: #29
null_pointer Wrote:So just to confirm, json.loads() screwes up the conversion?
json.loads() returns wrongly formatted unicode strings or is it returning utf-8 instead of unicode?

Database contains movies/tvshows that have non UTF-8 characters. The json.loads() can only handle UTF-8

So you need to wrap a character conversion method around the data that json.loads() needs

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first


For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
fryed_1 Offline
Member
Posts: 70
Joined: Aug 2010
Reputation: 0
Post: #30
Does this thing crash if you have non-standard characters like ' " ( ) etc...? It's crashing right when I try to show source paths.

Code:
17:53:16 T:27168  NOTICE: Missing Movie Scanner: LOG LEVEL : 5
17:53:16 T:27168  NOTICE: Missing Movie Scanner: Adding Directory Item: Show Source Paths totalItems:1
17:53:16 T:27168  NOTICE: Missing Movie Scanner: Adding Directory Item: About totalItems:1
17:53:16 T:76872   ERROR: Texture manager unable to load file: /logo.png
17:53:17 T:76312  NOTICE: -->Python Interpreter Initialized<--
17:53:17 T:74368  NOTICE: -->Python Interpreter Initialized<--
17:53:18 T:78136  NOTICE: -->Python Interpreter Initialized<--
17:53:18 T:78136  NOTICE: Missing Movie Scanner: get_movie_sources() called
17:53:18 T:78136  NOTICE: Missing Movie Scanner: VideoLibrary.GetSources results:
                                            {"id":1,"jsonrpc":"2.0","result":{"limits":{"end":4,"start":0,"total":4},"sources":[{"file":"smb://fs1/Videos/","label":"Videos"},{"file":"smb://FS1/Movies/","label":"Movies"},{"file":"smb://fs1/TVShows/","label":"TVShows"},{"file":"\\\\fs1\\Videos\\","label":"Videos (2)"}]}}
17:53:18 T:78136   ERROR: Error Type: <type 'exceptions.KeyError'>
17:53:18 T:78136   ERROR: Error Contents: ('shares',)
17:53:18 T:78136   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Bryan\AppData\Roaming\XBMC\addons\plugin.video.missingmoviescanner\defa​ult.py", line 247, in <module>
                                                ok = show_source_list()
                                              File "C:\Users\Bryan\AppData\Roaming\XBMC\addons\plugin.video.missingmoviescanner\defa​ult.py", line 222, in show_source_list
                                                MOVIE_PATHS = remove_duplicates(get_movie_sources())
                                              File "C:\Users\Bryan\AppData\Roaming\XBMC\addons\plugin.video.missingmoviescanner\defa​ult.py", line 42, in get_movie_sources
                                                shares = eval(jsonResult)['result']['shares']
                                            KeyError: ('shares',)
17:53:18 T:76872   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.missingmoviescanner/?mode=20
17:53:18 T:76872   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.missingmoviescanner/?mode=20) failed
17:53:18 T:79828  NOTICE: -->Python Interpreter Initialized<--
17:53:18 T:79828  NOTICE: Missing Movie Scanner: LOG LEVEL : 5
17:53:18 T:79828  NOTICE: Missing Movie Scanner: Adding Directory Item: Show Source Paths totalItems:1
17:53:18 T:79828  NOTICE: Missing Movie Scanner: Adding Directory Item: About totalItems:1
17:53:20 T:76872   ERROR: Control 1 in window 10099 has been asked to focus, but it can't

FYI this is in win7 64, eden B2... using SQL for movies/music between multiple machine (atv2, live and win7) and shared thumbnail paths.
find quote
Post Reply