Jump to content


Photo

3.6 api breaking changes


  • Please log in to reply
106 replies to this topic

#21 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 06 September 2018 - 02:31 PM

3.6 I've noticed a few things. My playlists are empty, my audiobooks are also empty. That's in the webapp. Bug? Or should I just rescan the libraries?

Edited by Angelblue05, 06 September 2018 - 02:32 PM.


#22 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3280 posts
  • Local time: 08:29 PM
  • LocationWarrington,UK

Posted 06 September 2018 - 02:33 PM

@Vicpa

 

couple of things

 

your url before &SeriesStatuses - looks fine after that its not correct - lots of errors in the format

 

try to keep it simple initially

 

second you dont appear to be supplying an &api_key=xxxx



#23 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3280 posts
  • Local time: 08:29 PM
  • LocationWarrington,UK

Posted 06 September 2018 - 02:34 PM

@Angelblue05

 

one thing - have you changed your library type to the new audiobook format from books?


  • Angelblue05 likes this

#24 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 06 September 2018 - 02:44 PM

Thank you, that was it. I knew I was missing something here. The other thread is getting really long and I couldn't find the information scouring the pages quickly.


  • PenkethBoy likes this

#25 Vicpa OFFLINE  

Vicpa

    Advanced Member

  • Alpha Testers
  • 1421 posts
  • Local time: 03:29 PM
  • LocationWest Chester, Pa. USA

Posted 08 September 2018 - 12:19 PM

Hi @Luke

 

As @PenkethBoy wisely noted, start simple(Thanks I tend to jump into the weeds!!)

 

Based on the OP of breaking changes, Will you verify that I can just comment out or delete the following from 

 

namespace MediaBrowser.Model.Dto
BaseItemDto class

 

        public bool? IsHD { get; set; }
        public int? LocalTrailerCount { get; set; }
        public int? RecursiveItemCount { get; set; }
        public int? ChildCount { get; set; }
        public int? SpecialFeatureCount { get; set; }
        public int? MediaSourceCount { get; set; }
        public int? TrailerCount { get; set; }
        public int? MovieCount { get; set; }
        public int? SeriesCount { get; set; }
        public int? ProgramCount { get; set; }
        public int? EpisodeCount { get; set; }
        public int? GameCount { get; set; }
        public int? SongCount { get; set; }
        public int? AlbumCount { get; set; }
        public int? ArtistCount { get; set; }
        public int? MusicVideoCount { get; set; }

 

Thanks!



#26 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 08 September 2018 - 12:46 PM

IsHd is deprecated as per post 1. The others may still appear depending on fields requested.



#27 PenkethBoy OFFLINE  

PenkethBoy

    Advanced Member

  • Members
  • 3280 posts
  • Local time: 08:29 PM
  • LocationWarrington,UK

Posted 08 September 2018 - 04:12 PM

MusicVideoCount does not work in Beta - till Luke fixes it



#28 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 11 September 2018 - 04:27 AM

@Luke

 

Server event regarding ItemsRemoved, something is off.

 

I've added a movie, then removed it. Here is what I get for events, that lead to the wrong entry.

03:14:08.601 T:8020  NOTICE: EMBY.entrypoint.service -> [ LibraryChanged ] {u'FoldersAddedTo': [u'26256', u'45963'], u'CollectionFolders': [u'0c41907140d802bb58430fed7e2cd79e', u'7e64e319657a9516ec78490da03edccb', u'bce6ab2f862d8111846735d20a46b29a', u'4514ec850e5ad0c47b58444e17b6346c', u'9713ca41539b6bcc9215a8bbed2b1b32', u'f137a2dd21bbc1b99aa5c0f6bf02a805', u'165db2549e77c71dacef0e83a95cc5de', u'a329cda1727467c08a8f1493195d32d3', u'f1ffda17fff72a19997ec7e667bb8d3c', u'122ca211c46006b344d85950f9ed4368', u'485ba1a1719b13876716412eb1915bb0', u'6b1bca533a3fc6ea9955ffe3d16d7d07', u'52f1cc5cfe5ba8c9452cebe7bca9e026', u'6309155661afe2b1a2750be5d21f4fdf', u'2c2260660d232253be35f46fcf43b95b', u'9d7ad6afe9afa2dab1a2f6e00ad28fa6', u'48af3bb0f5988d3cd867a245b7ef32d1', u'1071671e7bffa0532e930debee501d2e'], u'ItemsRemoved': [], u'ItemsUpdated': [u'45964'], u'FoldersRemovedFrom': [], u'ItemsAdded': [u'45963', u'45964'], u'IsEmpty': False}
03:14:08.602 T:8020  NOTICE: EMBY.library -> ---[ updated:2 ]
03:14:09.613 T:4388  NOTICE: EMBY.library -> -->[ q:download/3262004940304 ]
03:14:10.661 T:12708  NOTICE: EMBY.downloader -> --<[ q:download/3262004940304 ]
03:14:11.616 T:4388  NOTICE: EMBY.library -> -->[ q:updated/Movie/3262004940304 ]
03:14:11.675 T:20732  NOTICE: EMBY.objects.movies -> ADD movie [1/11408/856] 45964: About Time <--- notice the id

I removed About time, this is the event I received.

03:19:28.062 T:8020  NOTICE: EMBY.entrypoint.service -> [ LibraryChanged ] {u'FoldersAddedTo': [u'26256', u'45965'], u'CollectionFolders': [u'0c41907140d802bb58430fed7e2cd79e', u'7e64e319657a9516ec78490da03edccb', u'bce6ab2f862d8111846735d20a46b29a', u'4514ec850e5ad0c47b58444e17b6346c', u'9713ca41539b6bcc9215a8bbed2b1b32', u'f137a2dd21bbc1b99aa5c0f6bf02a805', u'165db2549e77c71dacef0e83a95cc5de', u'a329cda1727467c08a8f1493195d32d3', u'f1ffda17fff72a19997ec7e667bb8d3c', u'122ca211c46006b344d85950f9ed4368', u'485ba1a1719b13876716412eb1915bb0', u'6b1bca533a3fc6ea9955ffe3d16d7d07', u'52f1cc5cfe5ba8c9452cebe7bca9e026', u'6309155661afe2b1a2750be5d21f4fdf', u'2c2260660d232253be35f46fcf43b95b', u'9d7ad6afe9afa2dab1a2f6e00ad28fa6', u'48af3bb0f5988d3cd867a245b7ef32d1', u'1071671e7bffa0532e930debee501d2e'], u'ItemsRemoved': [u'45963'], u'ItemsUpdated': [u'45966'], u'FoldersRemovedFrom': [u'26256'], u'ItemsAdded': [u'45965', u'45966'], u'IsEmpty': False}
03:19:28.062 T:8020  NOTICE: EMBY.library -> ---[ updated:2 ]
03:19:28.062 T:8020  NOTICE: EMBY.library -> ---[ removed:1 ]
03:19:29.757 T:4388  NOTICE: EMBY.library -> -->[ q:download/3262018950144 ]
03:19:29.759 T:4388  NOTICE: EMBY.library -> -->[ q:sort/3262018951208 ]
03:19:29.763 T:19224  NOTICE: EMBY.library -> Could not find media 45963 in the emby database. <--- Wrong id?


#29 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 11 September 2018 - 08:49 AM

What is the issue?



#30 quickmic OFFLINE  

quickmic

    Advanced Member

  • Members
  • 126 posts
  • Local time: 09:29 PM

Posted 11 September 2018 - 08:55 AM

@Luke

I think Angelblue05 reported, based on my bug report here.

https://emby.media/c...and-sync-issue/


Edited by quickmic, 11 September 2018 - 08:56 AM.


#31 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 11 September 2018 - 09:16 AM

I meant from the developer point of view. Thanks.



#32 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 11 September 2018 - 02:13 PM

@Luke

Emby returns the wrong id to be removed. It created the movie entry, then I removed it and it sent the wrong id via librarychanged event. Looks to be one number short, so it created 45964 and when removed, Emby said the id was 45963, which is wrong.

Edited by Angelblue05, 11 September 2018 - 02:14 PM.


#33 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 11 September 2018 - 02:15 PM

It might be giving you the id of the containing folder.
  • Angelblue05 likes this

#34 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 11 September 2018 - 02:18 PM

Yes it is. Why is it no longer giving the actual item id for content instead of their folder id? Can that be adjusted?

#35 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 11 September 2018 - 03:38 PM

I think it's just because the parent folder is what was detected as being deleted first. this is something that could have happened before though, and i think it's just being noticed now for the first time.


  • Angelblue05 likes this

#36 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 11 September 2018 - 04:58 PM

Can it be adjusted? Or do I need to change how I keep track of items?

Edited by Angelblue05, 11 September 2018 - 04:58 PM.


#37 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 12 September 2018 - 01:06 AM

Are you storing parentid references clientside? I'm not sure about adjusting the message. The problem is two-fold, first being that the LibraryChanged sends out too much info as it is. Second being, it's a notification based on an event that has already happened, so the data of all the child references is no longer there to include in the message. So that would require reworking. I think if you get a notification about a folder being deleted, since you have the parentId references client-side, you have enough information to make sure the right data gets deleted.



#38 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 12 September 2018 - 04:44 AM

No I don't store the parent id. Ok, I'll have to change things around.



#39 Angelblue05 OFFLINE  

Angelblue05

    Advanced Member

  • Developers
  • 13508 posts
  • Local time: 02:29 PM

Posted 13 September 2018 - 05:05 PM

@Luke

 

Boxsets... How do you determine in the webapp that it should display videos? This doesn't seem right, type Movie, .isFolder false. That breaks everything.

{
      u'Genres': [
        u'Horror',
        u'Sci-Fi',
        u'Thriller',
        u'Action'
      ],
      u'MediaStreams': [
        
      ],
      u'LocationType': u'FileSystem',
      u'OfficialRating': u'R',
      u'Etag': u'543b6ca4c9f21c87d81daf7a932499c0',
      u'ServerId': u'b1ef1940b1964e2188f00b73611d53fd',
      u'ProductionLocations': [
        
      ],
      u'Type': u'Movie',
      u'IsFolder': False,
      u'PremiereDate': u'1979-05-25T05:00:00.0000000+00:00',
      u'ProductionYear': 1979,
      u'Path': u'C:\\Users\\Corruption\\AppData\\Roaming\\Emby-Server\\data\\collections\\Alien Collection [boxset]',
      u'BackdropImageTags': [
        u'7f7a06cf19d32d48601ca9d9e3a72594'
      ],
      u'Name': u'Alien Collection',
      u'MediaType': u'Video',
      u'Taglines': [
        
      ],
      u'UserData': {
        u'IsFavorite': False,
        u'PlayCount': 0,
        u'PlaybackPositionTicks': 0,
        u'Key': u'04592f44-6660-f58c-a949-8161c3b4600d',
        u'Played': False
      },
      u'Studios': [
        {
          u'Name': u'Twentieth Century Fox Film Corporation',
          u'Id': 24
        },
        {
          u'Name': u'Brandywine Productions',
          u'Id': 27079
        },
        {
          u'Name': u'Twentieth Century-Fox Productions',
          u'Id': 27184
        }
      ],
      u'Overview': u'A science fiction horror film franchise, focusing on Lieutenant Ellen Ripley (Sigourney Weaver) and her battle with an extraterrestrial life-form, commonly referred to as "the Alien". Produced by 20th Century Fox, the series started with the 1979 film Alien, then Aliens in 1986, Alien\xb3 in 1992, and Alien: Resurrection in 1997.',
      u'DateCreated': u'2016-09-06T11:35:44.0000000+00:00',
      u'ImageTags': {
        u'Logo': u'db13325a73003fad9016f8712914855a',
        u'Primary': u'750860d4f25931d2e7c2b77a7c6fafa3',
        u'Thumb': u'9aecfa24867257137d8fe56c4a5e2c5e'
      },
      u'GenreItems': [
        {
          u'Name': u'Action',
          u'Id': 16879
        },
        {
          u'Name': u'Sci-Fi',
          u'Id': 16893
        },
        {
          u'Name': u'Thriller',
          u'Id': 16895
        },
        {
          u'Name': u'Horror',
          u'Id': 17473
        }
      ],
      u'Id': u'42301'
    },

Edited by Angelblue05, 13 September 2018 - 05:06 PM.


#40 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 131180 posts
  • Local time: 03:29 PM

Posted 13 September 2018 - 05:07 PM

the web app just queries for the items in the boxset and then arranges them client-side.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users