[RELEASE] MMA Browser

  Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #191
bernabap Wrote:I just installed MMA Browser and I am getting "Error: script failed! ..." for every menu entry.

I am trying with the last 2 UFC events, 143 and 144. Here is how I set up my folders:

D:\Seriados\UFC\UFC 143 Diaz vs Condit\UFC 143 Diaz vs Condit 720p HDTVRip.mp4
D:\Seriados\UFC\UFC 143 Diaz vs Condit\sherdogEventID.nfo ( with id 18945 at first line )

D:\Seriados\UFC\UFC 144 Edgar vs Henderson\UFC 144 Edgar vs Henderson 720p HDTVRip.mp4
D:\Seriados\UFC\UFC 144 Edgar vs Henderson\sherdogEventID.nfo (with id 18347 )

Here is my log:

http://pastebin.com/6yUpyEq0

Do you have any tip about what is happening?

Thanks

Seems to be some kind of encoding issue with your filenames/eventID files.

I'm not really sure what's causing it, I don't really understand unicode but i'll give a fix a go and post here when i'm done so you can update from git and test.
find quote
bernabap Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #192
OK, but you should be watching the UFC now. Do this another time! Smile
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #193
Good point Wink
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #194
Quick fights tonight, plenty of time between bouts for coding Wink

Just pushed an attempted fix for the unicode issue you're experiencing, can you update to the latest git and test for me?
find quote
pseudoheld Offline
Member
Posts: 86
Joined: Dec 2008
Reputation: 0
Post: #195
fun event even though someone screwed up bad with the johnson / mccal decision. but they will rematch which is awesome!
anyhow back to topic.
i downloaded and installed the latest version and i am having an issue.
i have several folders added to the library, the main UFC events get scanned fine (all already have sherdogID) but the fightnights and ufc on FX etc (which also have sherdogID) don't get added. also my WEC events (without sherdogID) don't get scraped at all.
so somehow it just added the main UFC events. fodler structure is:
D:/Sport/UFC/UFC001
D:/sport/UFC/UFCXXX
D:/Sport/UFC Rest/UFC Fight Night/UFN X
D:/Sport/UFC Rest/UFC on FX/UFC on FX X
D:/Sport/WEC/WEC 1

so all my events are in subfolders of subfolders, but with the main events it works fine so why not with the others...also only ufc as organisation shows up. no wec whatsoever

EDIT: i think i found the error. i had a folder with UFC 145 (which hasnt happened yet) and i think the contained sherdogID was causing the scan process to stop. so everything coming afterwards wasn't scanned :O

gathering from this it also seems that events arent being scraped automatically yet. am i correct? so i still have to add the sherdogID manually?
(This post was last modified: 2012-03-04 00:08 by pseudoheld.)
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #196
The addon can only scan an event if it has an ID, so if you haven't added an id to your wec events (they're all listed on sherdog) they won't scan.

have no idea what's happening if you don't post a debug log

please do a full rescan and send me the log once completed
find quote
pseudoheld Offline
Member
Posts: 86
Joined: Dec 2008
Reputation: 0
Post: #197
paddycarey Wrote:The addon can only scan an event if it has an ID, so if you haven't added an id to your wec events (they're all listed on sherdog) they won't scan.

have no idea what's happening if you don't post a debug log

please do a full rescan and send me the log once completed

as i said in my edit it started working again.
i had made folder for ufc up to 150 and given them sherdogIDs. one of them seemed to be defective (144) thus crashing the scan process and everything afterwards wasn't added.

about the wec from looking at the first post i thought that sherdogID was now added automatically. nvm will do it by hand then (unless you have it lined up for next release Wink )
find quote
HansMayer Offline
Senior Member
Posts: 179
Joined: Feb 2012
Reputation: 10
Post: #198
paddycarey Wrote:Seems to be some kind of encoding issue with your filenames/eventID files.

I'm not really sure what's causing it, I don't really understand unicode but i'll give a fix a go and post here when i'm done so you can update from git and test.

Code:
File "C:\Users\htpc\AppData\Roaming\XBMC\addons\plugin.video.mmabrowser\resources\lib\​library.py", line 132, in scanLibrary
                                                log('Event ID/path found (%s): %s' % (event['ID'], event['path']))
This happens when you try to print unicode from an ascii string.
Code:
log('Event ID/path found (%s): %s' % (event['ID'].encode('utf-8'), event['path'].encode('utf-8')))
Either that, or you make it an unicode string with unicode(string, 'utf-8').
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #199
Thanks for the tip, I think I already fixed it in my most recent git commit.
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #200
pseudoheld Wrote:as i said in my edit it started working again.
i had made folder for ufc up to 150 and given them sherdogIDs. one of them seemed to be defective (144) thus crashing the scan process and everything afterwards wasn't added.

yeah there's a known problem with scraping future events, should get a chance to look at it later tonight (hopefully)

pseudoheld Wrote:about the wec from looking at the first post i thought that sherdogID was now added automatically. nvm will do it by hand then (unless you have it lined up for next release Wink )

probably not the next release, but it's not too far away

I have a naultilus script i use to allow me to quickly enter the sherdog ids for now, i can post it if anyone wants but it's going to be obsolete fairly soon when i get the searching working
find quote
Post Reply