[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: #181
m3nt0r Wrote:Hopefully this worked. Pastebin is new to me ... http://pastebin.com/a7Q4wsJf

Looks like it's adding the promotions correctly in the log

Code:
13:30:40 T:2942602128   DEBUG: StartScript - calling plugin MMA Browser('plugin://plugin.video.mmabrowser/','0','?path=/browsebyorganisation')
13:30:40 T:2942602128    INFO: initializing python engine.
13:30:40 T:2942602128   DEBUG: new python thread created. id=17
13:30:40 T:2899295120   DEBUG: Thread XBPyThread start, auto delete: 0
13:30:40 T:2899295120   DEBUG: Python thread: start processing
13:30:40 T:2899295120  NOTICE: -->Python Interpreter Initialized<--
13:30:40 T:2899295120   DEBUG: Process - The source file to load is /root/.xbmc/addons/plugin.video.mmabrowser/default.py
13:30:40 T:2942602128   DEBUG: WaitOnScriptResult - waiting on the MMA Browser plugin...
13:30:40 T:2899295120   DEBUG: Process - Setting the Python path to /root/.xbmc/addons/plugin.video.mmabrowser:/usr/local/share/xbmc/addons/script.module.simplejson/lib:/root/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/root/.xbmc/addons/script.common.plugin.cache/lib:/root/.xbmc/addons/script.module.simple.downloader/lib:/root/.xbmc/addons/script.module.parsedom/lib:/root/.xbmc/addons/script.module.elementtree/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg:/usr/local/lib/python2.6/site-packages/pip-1.0-py2.6.egg:/usr/local/lib/python26.zip:/usr/local/lib/python2.6:/usr/local/lib/python2.6/plat-linux2:/usr/local/lib/python2.6/lib-tk:/usr/local/lib/python2.6/lib-old:/usr/local/lib/python2.6/lib-dynload:/usr/local/lib/python2.6/site-packages:
13:30:40 T:2899295120   DEBUG: Process - Entering source directory /root/.xbmc/addons/plugin.video.mmabrowser
13:30:40 T:2899295120   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.mmabrowser" dependent on version 2.0 of the xbmc.python api
13:30:40 T:2899295120   DEBUG: MMA Browser: Script path: /browsebyorganisation
13:30:40 T:2899295120   DEBUG: MMA Browser: Library path: /mnt/MMA/
13:30:40 T:2899295120   DEBUG: MMA Browser: path:/browsebyorganisation
13:30:40 T:2899295120   DEBUG: MMA Browser: organisation:
13:30:40 T:2899295120   DEBUG: MMA Browser: Browsing: Organisations
13:30:40 T:2899295120   DEBUG: MMA Browser: Retrieving list of all promotions from database
13:30:40 T:2899295120   DEBUG: MMA Browser: Retrieving count of events in database for promotion: International Fighting Championship
13:30:40 T:2899295120   DEBUG: MMA Browser: Adding: Promotion: International Fighting Championship
13:30:40 T:2899295120   DEBUG: MMA Browser: Retrieving count of events in database for promotion: Ultimate Fighting Championship
13:30:40 T:2899295120   DEBUG: MMA Browser: Adding: Promotion: Ultimate Fighting Championship
13:30:40 T:2942602128   DEBUG: WaitOnScriptResult- plugin returned successfully
13:30:40 T:2860092304   DEBUG: Thread Background Loader start, auto delete: 0
13:30:40 T:2899295120    INFO: Scriptresult: Success
13:30:40 T:2899295120    INFO: Python script stopped

You sure you haven't marked them as watched or something?
find quote
m3nt0r Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #182
I definitely have not marked any of them read. The ACLs are the same on all the groups also. I have two AppleTVs so I setup on the other one as a fresh test and had the exact same outcome. After a scan when I click on By Organization, it shows IFC (1) and UFC(155) but when I go into IFC it shows the one event. When I go into UFC it doesn't show anything. When I go into By Event, it only shows the IFC event. Do I need to rename the file names to match the directory? As an example, of two different events the files look like this ...

/mnt/MMA/International Fighting Championships/2003-09-06 - IFC - Global Domination/IFC - Global Domination.avi
/mnt/MMA/Ultimate Fighting Championship/2012-02-25 - UFC 144 - Edgar vs. Henderson/ufc.144.ppv.720p.hdtv.x264-kyr.mkv
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #183
m3nt0r Wrote:/mnt/MMA/International Fighting Championships/2003-09-06 - IFC - Global Domination/IFC - Global Domination.avi
/mnt/MMA/Ultimate Fighting Championship/2012-02-25 - UFC 144 - Edgar vs. Henderson/ufc.144.mkv

Shouldn't matter what the files are named

Seems to be an issue with scanning events that haven't taken place yet (can't find the winner), can you try removing the id file in "UFC on FX 2" and rescan see if that helps?

If that's the issue then it'll be fixed with the rewrite i'm doing.
(This post was last modified: 2012-03-01 02:24 by paddycarey.)
find quote
m3nt0r Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #184
I deleted all the future events from the list. Doing that definitely did something. A WEC event is now showing up in my Organization list that wasn't there before. Unfortunately the UFC still shows 155 total events, but no events are shown below it.
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #185
m3nt0r Wrote:I deleted all the future events from the list. Doing that definitely did something. A WEC event is now showing up in my Organization list that wasn't there before. Unfortunately the UFC still shows 155 total events, but no events are shown below it.

did you do a full rescan (either ticking the options in settings or deleting the .db file)? or just remove the events?

if not try a full rescan, hopefully should work, if not send me another debug log from the full rescan run and i'll have a look
find quote
sirsmooth Offline
Junior Member
Posts: 9
Joined: Jun 2011
Reputation: 0
Post: #186
0.7 has is now working for me.
Thanks Paddy, great addon.
find quote
m3nt0r Offline
Junior Member
Posts: 8
Joined: Jan 2012
Reputation: 0
Post: #187
paddycarey Wrote:did you do a full rescan (either ticking the options in settings or deleting the .db file)? or just remove the events?

if not try a full rescan, hopefully should work, if not send me another debug log from the full rescan run and i'll have a look

I went in and deleted the .db file and did a full rescan. Took about half and hour (maybe more) and when finished I was in the same place. IFC event was fine. WEC event was fine. UFC lists 155 events, but none show up. This evening I will wipe the db again, turn on logging and start over. just ran out of time last night.
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #188
m3nt0r Wrote:This evening I will wipe the db again, turn on logging and start over. just ran out of time last night.

You should probably also update to git master, I've added a few fixes since 0.0.7 which might help
find quote
paddycarey Offline
Senior Member
Posts: 246
Joined: Sep 2009
Reputation: 8
Post: #189
Just posted a new zip in the first post, version 0.0.8.

This should eliminate the constant scans on startup but you'll now have to update the library manually with the "Update Library" button. Also you'll now no longer see any duplicate events if you have the same ID in more than one folder.

Also, for anyone who was having trouble with the script freezing on Aeon Nox, if you update Aeon from git you shouldn't have any more problems Smile
find quote
bernabap Offline
Junior Member
Posts: 5
Joined: Feb 2012
Reputation: 0
Post: #190
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
find quote
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
Senior Member
Posts: 109
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
Post Reply