Jump to content


Photo

XBMB3C feature suggestions

XBMB3C Suggestions

  • This topic is locked This topic is locked
83 replies to this topic

#41 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 07:17 PM

@Luke - any ideas on that? ^^  DisplayMediaType not populated in SearchHint results.

 

Thanks,

xnappo


Edited by xnappo, 20 April 2014 - 07:18 PM.


#42 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 140105 posts
  • Local time: 11:56 PM

Posted 20 April 2014 - 07:19 PM

No but I really wouldn't use the field anyway. Its name is misleading and not really indicitave of its function.

#43 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 07:23 PM

Err - it is very useful for what I am using it for.  You suggest I look up every Id manually?  In general - why are the results from the search query so vastly different from other queries - would be a lot easier if search returned a list of normal Items - is that a reasonable feature request?

 

Thanks,

xnappo



#44 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 07:27 PM

Just did, for anything but audio the column is not populated.

 

Thanks.  Now please try:

 

1. http://<yourip>:8096/mediabrowser/Search/Hints?SearchTerm=night&UserId=<userid>

 

Choose a movie, and copy the ItemId.

 

2. http://<yourip>:8096/mediabrowser/Users/<userid>/items/<ItemId>

 

See if 'Type' is Movie.

 

Thanks,

xnappo


Edited by xnappo, 20 April 2014 - 07:28 PM.


#45 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 04:56 AM

Posted 20 April 2014 - 07:35 PM

Thanks.  Now please try:

 

1. http://<yourip>:8096/mediabrowser/Search/Hints?SearchTerm=night&UserId=<userid>

 

Choose a movie, and copy the ItemId.

 

2. http://<yourip>:8096/mediabrowser/Users/<userid>/items/<ItemId>

 

See if 'Type' is Movie.

 

Thanks,

xnappo

 

Did it with an episode but yes, the type is episode.


  • xnappo likes this

#46 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 08:07 PM

Ok - I changed the code to manually look up each item.  It is slower, but there is a lot more data.

 

xnappo


  • tube82 likes this

#47 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 04:56 AM

Posted 20 April 2014 - 08:22 PM

It works now! The decrease in speed is definitely noticable, though.

 

When I look at the result of this query:

http://<yourip>:8096/mediabrowser/Search/Hints?SearchTerm=night&UserId=<userid>

there also is the 'Type' column. Couldn't you just use that instead?

 

[edit]

One more thing: The results of the query are not sorted by type (e.g. first all movies, then all episodes etc). Should they be grouped by type?


Edited by tube82, 20 April 2014 - 08:24 PM.

  • xnappo likes this

#48 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 09:15 PM

Err - yes  :unsure:

 

Okay - switched to using 'Type'.

 

The order is the order MB3 thinks matches best... I wish the MB3 search interface was just the same as a normal query but with an optional search term, but that isn't the case so it is a bit limited.

 

xnappo


  • tube82 likes this

#49 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 04:56 AM

Posted 20 April 2014 - 09:21 PM

Works great now. Fast and showing all types correctly!

 

A better order would be nice, but if it's just what MB3 gives you it'll do :)


  • xnappo likes this

#50 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 20 April 2014 - 09:27 PM

Thanks again for your ultra-fast alpha testing. You are spoiling me.

 

We will improve this over time - but I think I am closing it out for now and will work towards an official repo release now.

 

xnappo


  • tube82 likes this

#51 elcabong OFFLINE  

elcabong

    Advanced Member

  • Alpha Testers
  • 131 posts
  • Local time: 09:56 PM

Posted 21 April 2014 - 08:10 PM

tested search, working fast here as well.  looks good..  can you sort the results alphabetically until a better sort function is determined?  this should put all like items next to each other, and keep multiple episodes of shows next to each other.



#52 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 21 April 2014 - 08:13 PM

I played with that myself, but it wasn't very good - because you end up with a bunch of songs first.

 

I will keep messing with it though - I agree it needs some sort of refinement.

 

xnappo



#53 elcabong OFFLINE  

elcabong

    Advanced Member

  • Alpha Testers
  • 131 posts
  • Local time: 09:56 PM

Posted 21 April 2014 - 08:25 PM

what about reverse alpha?  would put the order like this (at least for my test results)

 

tv series > music artists > movies > folder (collections if grouped in folders) > episodes > audio



#54 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 21 April 2014 - 08:37 PM

Well I am hesitant to code around it - it is really an MB3 server limitation.  Try a search in the Web client and you get the same result.

 

With all of the non-standard queries I would like to see sorting ability added - like for NextUp I would like to be able to sort by series name...

 

xnappo


  • im85288 likes this

#55 elcabong OFFLINE  

elcabong

    Advanced Member

  • Alpha Testers
  • 131 posts
  • Local time: 09:56 PM

Posted 21 April 2014 - 08:56 PM

ah, i didnt think to check it against the web version.. i see what you mean.  having just what you implemented is a huge plus already.

 

if/when the time comes to look into this again, let me know if there is a request to add functionality to mbs3 search, il +1.



#56 elcabong OFFLINE  

elcabong

    Advanced Member

  • Alpha Testers
  • 131 posts
  • Local time: 09:56 PM

Posted 21 April 2014 - 07:08 PM

ive noticed an issue with data going to xbmc in 1 instance:

when playing an un-played episode, the plot gets passed so it can be called using xbmc's json > player.getitem.  but if i stop the episode, creating a resume point, when resuming the episode, plot is not available through xbmc's json > player.getitem.

 

i know getting the info through xbmc's json is a small use case, but it would make implementing something like the link below a bit easier instead of hitting xbmc for nowplaying, then mbs3 json for the rest of the data:

 

http://forum.xbmc.or....php?tid=153126

 

requested info:

cover, fanart, genre, year, first aired/released, runtime, rating, director, writer

 

ive tried poking around line 885 in xbmb3c/default.py to add the additional info, but have been unsuccessful.



#57 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 21 April 2014 - 07:30 PM

 

ive tried poking around line 885 in xbmb3c/default.py to add the additional info, but have been unsuccessful.

 

I think I see the problem.

 

Look for this:

while xbmc.Player().getTime() < (seekToTime - 5):
            xbmc.Player().pause
            xbmc.sleep(100)
            xbmc.Player().seekTime(seekToTime)
            xbmc.sleep(100)
            xbmc.Player().play()

Replace with this (only last line differs):

while xbmc.Player().getTime() < (seekToTime - 5):
            xbmc.Player().pause
            xbmc.sleep(100)
            xbmc.Player().seekTime(seekToTime)
            xbmc.sleep(100)
            xbmc.Player().play(playurl, item)

It that works, let me know and I will check it in.  

 

xnappo


Edited by xnappo, 21 April 2014 - 05:30 PM.


#58 elcabong OFFLINE  

elcabong

    Advanced Member

  • Alpha Testers
  • 131 posts
  • Local time: 09:56 PM

Posted 21 April 2014 - 08:10 PM

nope, same issue persists.

 

 

here is the json output from player.getitem the first time its played

{"id":"1","jsonrpc":"2.0","result":{"item":{
"album":"",
"artist":[],
"cast":[],
"country":[],
"dateadded":"",
"director":[],
"episode":1,
"episodeguide":"",
"fanart":"",
"file":"smb://myserver/TV Shows/Orphan Black/Season 02/Orphan Black - 2x01 - Nature Under Constraint and Vexed.mkv",
"firstaired":"",
"genre":[],
"imdbnumber":"",
"label":"Nature Under Constraint and Vexed",
"lastplayed":"",
"mpaa":"",
"originaltitle":"",
"playcount":0,
"plot":"Sarah is out of options, on the run, and pursued by deadly adversaries. Desperate to find her daughter Kira, Sarah suspects ruthless pro-clone Rachel is behind her daughter’s disappearance and sparks an all out war against her. Alison and Donnie attend the funeral of her fallen friend, Aynsley, causing Alison to sink into guilt and despair. Cosima is faced with a perplexing decision that may have dire consequences.",
"plotoutline":"",
"premiered":"",
"productioncode":"",
"rating":0,
"resume":{"position":0,"total":0},
"runtime":0,
"season":2,
"set":"",
"setid":-1,
"showlink":[],
"showtitle":"",
"sorttitle":"",
"streamdetails":{"audio":[],"subtitle":[],"video":[]},
"studio":[],
"tag":[],
"tagline":"",
"thumbnail":"image://http%3a%2f%2flocalhost%3a15001%2f%3fid%3d6f810ae9de86b8bf51c20fdcb92ac855%26type%3dPrimary%26tag%3d1743bb95263846a8798036b703db7198/",
"title":"Nature Under Constraint and Vexed",
"top250":0,
"track":-1,
"trailer":"",
"tvshowid":-1,
"type":"unknown",
"uniqueid":{"unknown":""},
"votes":"",
"writer":[],
"year":0}}}

and here is the json output from player.getitem each time after the first.  i think it may have something to do with the lastplayed field handling.  seems to be the only new info, while a bit of the previous info is missing

{"id":"1","jsonrpc":"2.0","result":{"item":{
"dateadded":"",
"director":[],
"episode":-1,
"episodeguide":"",
"fanart":"",
"file":"smb://myserver/TV Shows/Orphan Black/Season 02/Orphan Black - 2x01 - Nature Under Constraint and Vexed.mkv",
"firstaired":"",
"genre":[],
"imdbnumber":"",
"label":"Orphan Black - 2x01 - Nature Under Constraint and Vexed",
"lastplayed":"2014-04-21 14:58:23",
"mpaa":"",
"originaltitle":"",
"playcount":0,
"plot":"",
"plotoutline":"",
"premiered":"",
"productioncode":"",
"rating":0,
"resume":{"position":0,"total":0},
"runtime":0,
"season":-1,
"set":"",
"setid":-1,
"showlink":[],
"showtitle":"",
"sorttitle":"",
"streamdetails":{"audio":[],"subtitle":[],"video":[]},
"studio":[],
"tag":[],
"tagline":"",
"thumbnail":"image://http%3a%2f%2flocalhost%3a15001%2f%3fid%3d6f810ae9de86b8bf51c20fdcb92ac855%26type%3dPrimary%26tag%3d1743bb95263846a8798036b703db7198/",
"title":"",
"top250":0,
"track":-1,
"trailer":"",
"tvshowid":-1,
"type":"unknown",
"uniqueid":{"unknown":""},
"votes":"",
"writer":[],
"year":0}}}


#59 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 11:56 PM
  • LocationAustin, TX

Posted 22 April 2014 - 05:38 PM

From all I can tell there is nothing wrong with our code...  The information shows up correctly during playback, so I think it may be on the XBMC side.

 

xnappo



#60 tube82 OFFLINE  

tube82

    Advanced Member

  • Alpha Testers
  • 164 posts
  • Local time: 04:56 AM

Posted 22 April 2014 - 07:50 PM

Added special features suggestion and a link to the thread where it's discussed.







Also tagged with one or more of these keywords: XBMB3C, Suggestions

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users