Jump to content

Unable to Add a Specific TV Series Season to a Collection


solabc16

Recommended Posts

solabc16

Morning

 

I've been trying to add a specific season from a TV series to a collection, and although you can go through the motions in the UI without any errors, they do not actually get added.

 

Here's an example:-

 

- Browse to the series you wish to add to the collection...

 

56a60421245ec_emby1.png

 

- Select add to collection, pick the collection and hit ok...

 

56a6043db21f2_emby2.png

 

- Nothing, either in the Metadata Manager or the Collections media UI...

 

56a6044fe76c9_emby3.png

 

Any ideas?

 

Best

- James

Link to comment
Share on other sites

solabc16

Here's the request and response when trying to add this item...

 

http://192.168.236.105:8096/emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=652f143925fcd8415240336c540aaac0

POST /emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=652f143925fcd8415240336c540aaac0 HTTP/1.1
Host: 192.168.236.105:8096
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
x-mediabrowser-token: d18a652678a247678ff63e147835d1ad
x-emby-authorization: MediaBrowser Client="Emby Web Client", Device="Web Browser 43.0", DeviceId="47a93a200c72dd24dfab333b6336d016b40ee4f6", Version="3.0.5786.0", UserId="0e338bf82b684e2e9601d46c1ec78c68"
Referer: http://192.168.236.105:8096/web/dlg1453724259867
Origin: http://192.168.236.105:8096
Cookie: stay_login=1; id=Ny0NQlSR48sAU1520MHN133502
Connection: keep-alive
Content-Length: 0

HTTP/1.1 204 No Content
x-ua-compatible: IE=Edge
X-Frame-Options: SAMEORIGIN
Vary: Accept
x-powered-by: ServiceStack/4.00 Unix/Mono
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-headers: Content-Type, Authorization, Range, X-MediaBrowser-Token, X-Emby-Authorization
Server: Mono-HTTPAPI/1.0
Date: Mon, 25 Jan 2016 12:17:49 GMT
Content-Length: 0

 

This is what shows up in the server log...

2016-01-25 12:27:48.6461 Info HttpServer: HTTP POST http://192.168.236.105:8096/emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=652f143925fcd8415240336c540aaac0. UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.02016-01-25 12:27:48.6488 Debug ProviderManager: Saving /usr/local/emby/var/data/collections/24 Season 7 [boxset] to Emby Xml.2016-01-25 12:27:48.7095 Debug App: Saving /usr/local/emby/var/data/collections/24 Season 7 [boxset] to database.2016-01-25 12:27:48.7115 Info HttpServer: HTTP Response 204 to 192.168.236.108. Time: 65ms. http://192.168.236.105:8096/emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=652f143925fcd8415240336c540aaac0

Here's the request and response when trying to add this item's parent...

 

http://192.168.236.105:8096/emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=426544b507186b97dc7f83761993b5ec

POST /emby/Collections/7fae8dfcf65df8bb9c31dd4a42562aa7/Items?Ids=426544b507186b97dc7f83761993b5ec HTTP/1.1
Host: 192.168.236.105:8096
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
x-mediabrowser-token: d18a652678a247678ff63e147835d1ad
x-emby-authorization: MediaBrowser Client="Emby Web Client", Device="Web Browser 43.0", DeviceId="47a93a200c72dd24dfab333b6336d016b40ee4f6", Version="3.0.5786.0", UserId="0e338bf82b684e2e9601d46c1ec78c68"
Referer: http://192.168.236.105:8096/web/dlg1453724376505
Origin: http://192.168.236.105:8096
Cookie: stay_login=1; id=Ny0NQlSR48sAU1520MHN133502
Connection: keep-alive
Content-Length: 0

HTTP/1.1 204 No Content
x-ua-compatible: IE=Edge
X-Frame-Options: SAMEORIGIN
Vary: Accept
x-powered-by: ServiceStack/4.00 Unix/Mono
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-headers: Content-Type, Authorization, Range, X-MediaBrowser-Token, X-Emby-Authorization
Server: Mono-HTTPAPI/1.0
Date: Mon, 25 Jan 2016 12:19:43 GMT
Content-Length: 0

 

Edited by solabc16
Link to comment
Share on other sites

solabc16

On the server side, this is the contents of the file /usr/local/emby/var/data/collections/24 Season 7 [boxset].

 

The empty CollectionItem elements I suspect are from my various attempts to add the content and of course, being invisible in the UI, can't delete them again.

 

I suspect the problem observed here relates to the 'Series 7' element of the path, as it is a virtual representation created by the server to group seasons.

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<Item>
  <Added>01/24/2016 11:34:39</Added>
  <LockData>false</LockData>
  <LocalTitle>24 Season 7</LocalTitle>
  <DisplayOrder>PremiereDate</DisplayOrder>
  <CollectionItems>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
      <Path>/volume1/EmbyServer/TV/24 Season 7 - Deleted Scenes</Path>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
    <CollectionItem>
    </CollectionItem>
  </CollectionItems>
  <Shares>
    <Share>
      <UserId>0e338bf82b684e2e9601d46c1ec78c68</UserId>
      <CanEdit>true</CanEdit>
    </Share>
  </Shares>
</Item>

Best

- James

Link to comment
Share on other sites

solabc16

Hi Luke

 

Version is 3.0.5786.0, running on Synology.

 

I've looked at it a little more today.

 

I can confirm it only happens when the item you attempting to add to the collection is a server generated container, e.g. Series 7 in this case, but same occurs for say Series 1, Series 2, etc.

 

If the path to the content equates to a physical path that actually exists as part of a configured library, everything works as expected.

 

Best

- James

Link to comment
Share on other sites

You mean you don't actually have a "Season" folder in that series?  All the episodes are all in the parent folder?

 

Since collections are linked by path, I can see how that would be a problem.

Link to comment
Share on other sites

solabc16

Hi - yes, although it wasn't intentional - at least initially.

 

After adding them, when I looked in Metadata Manger, I saw the server had automatically used the season numbers from the metadata to create containers for each season.

 

This worked fine when browsing in Metadata Manager, and from the Web and Theatre front ends.

 

I haven't had a chance to look at the source today, but I figured that this behaviour was unlikely to be accidental and therefore by design.

 

I've put the folder structure in place this evening, and as noted there is no problem when the path exists physically.

 

-----

 

The reason this came about in the first place, was a result of working on trying to create a reasonable representation of a boxset within Emby.

 

I decided to dump some miscellaneous content together in a top level folder, i.e. at the TV Show Level, which I could then link to a collection.

 

The problem I ran into occurred because of the server inserting a pseudo container based on the season number. This container also appears in the Web and Theatre UIs, thus needing an additional click to get to the content, which I'd tried to workaround by linking directly to it in the collection.

 

Best

- James

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...