Swiftfin icon indicating copy to clipboard operation
Swiftfin copied to clipboard

tvOS - Movies library empty - but not on iphone

Open psyciknz opened this issue 2 years ago • 15 comments

Describe the bug

  1. Go to TV Shows, populates
  2. Go to Movies - library is empty.
  3. Switch to jelly fin web site, movies library is populated.
  4. Switch to ios jellyfin client, movies library is populated

Application version

1.0.0(74) I think

Where did you install the app from?

TestFlight

Device information

Apple tv and apple tv 4k

OS version

16.0

Jellyfin server version

10.8.5

psyciknz avatar Oct 31 '22 18:10 psyciknz

I also have this problem. I can find my movies individually if I search for them. Also my movie "collections" work fine.

The problem started after I moved my server and possibly switched from one version of Jellyfin server to another. My current version of Jellyfin server is 10.8.5, I don't know what my previous version was, sorry.

Bronson-Brown-deVost avatar Oct 31 '22 19:10 Bronson-Brown-deVost

The same problem began after upgrading Swiftfin to 1.0.0(83). The previous version worked fine. Jellyfin 10.8.5 and 10.8.7

ttonych avatar Nov 04 '22 15:11 ttonych

I am experiencing this problem as well. Fresh install of 1.0.0(83). I don't see my movie library

Here is the log from the server side of the tvOS login and playing a video from my TV Show libary.

The only thing that looks suspicious is the Warning I see in the logs about a Slow Response form includeItemTypes=movie

Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.2.226:8096/Users/2345e169c34c4f5a927b20c095a53ec6/Items?sortBy=SortName&sortBy=IsFolder&includeItemTypes=movie&fields=airTime&fields=canDelete&fields=canDownload&fields=channelInfo&fields=chapters&fields=childCount&fields=cumulativeRunTimeTicks&fields=customRating&fields=dateCreated&fields=dateLastMediaAdded&fields=displayPreferencesId&fields=etag&fields=externalUrls&fields=genres&fields=homePageUrl&fields=itemCounts&fields=mediaSourceCount&fields=mediaSources&fields=originalTitle&fields=overview&fields=parentId&fields=path&fields=people&fields=playAccess&fields=productionLocations&fields=providerIds&fields=primaryImageAspectRatio&fields=recursiveItemCount&fields=settings&fields=screenshotImageTags&fields=seriesPrimaryImage&fields=seriesStudio&fields=sortName&fields=specialEpisodeNumbers&fields=studios&fields=basicSyncInfo&fields=syncInfo&fields=taglines&fields=tags&fields=remoteTrailers&fields=mediaStreams&fields=seasonUserData&fields=serviceName&fields=themeSongIds&fields=themeVideoIds&fields=externalEtag&fields=presentationUniqueKey&fields=inheritedParentalRatingValue&fields=externalSeriesId&fields=seriesPresentationUniqueKey&fields=dateLastRefreshed&fields=dateLastSaved&fields=refreshState&fields=channelImage&fields=enableMediaSourceDisplay&fields=width&fields=height&fields=extraIds&fields=localTrailerCount&fields=isHD&fields=specialFeatureCount&enableUserData=true&sortOrder=ascending&recursive=true&startIndex=0&limit=34" to "192.168.2.253" in 0:00:00.5133504 with Status Code 200

Edit: I don't know if I'd consider that suspicious now. I can see I can raise the time connections are considered slow in the server config. Raising it a little cleared those error messages.

michael-hardeman avatar Nov 15 '22 01:11 michael-hardeman

I am also experiencing this issue, would love a fix!

Mat-Longinow avatar Nov 21 '22 02:11 Mat-Longinow

I experienced this issue with Swiftfin 1.0.0(83) from Oct 25 and Jellyfin server 10.8.7.

I debugged the issue in Xcode and, at least for me, it is an API issue. The JSON decoding of the response from the server was failing. MediaStreamType was "Data" but the API version with the Swiftfin client did not include that type so it failed. I updated the API code and it did work as expected with movies being displayed again.

The Swiftfin tvOS app will need the API updated and a new build pushed.

kcramer avatar Nov 21 '22 07:11 kcramer

As a note, this is happening on my iPhone as well. iPhone 12 Pro Max. Version 15.1.1.

Mat-Longinow avatar Nov 21 '22 15:11 Mat-Longinow

I would like to note that I also have this issue on 1.0.0 (79). My movies and books libraries (20 or so entries) appear empty but my small collections and shows libraries (5 or so entries) seem to show up. Could this be a timeout issue? All libraries work on the main app and web.

kuflierl avatar Dec 12 '22 10:12 kuflierl

Yea unfortunately this issue has forced me to switch over to Infuse instead of Jellyfin as this is a pretty debilitating bug. I would personally mark this high priority if this was my project.

Mat-Longinow avatar Dec 12 '22 15:12 Mat-Longinow

Apparently @kcramer has the fix already. What do we need to push this thing through? I'm happy to help with any coding needed, but I assume someone with the right Apple developer credentials needs to build the app.

By the way, big shout out to all the devs who have put so many hours into this fantastic project.

Bronson-Brown-deVost avatar Dec 12 '22 16:12 Bronson-Brown-deVost

Sadly that wasn't a fix, that was just to log decoding errors. This is an error with decoding because there was an API change which added a type. I am looking at this in my current work, and it will be fixed.

LePips avatar Dec 12 '22 16:12 LePips

Yea unfortunately this issue has forced me to switch over to Infuse instead of Jellyfin as this is a pretty debilitating bug. I would personally mark this high priority if this was my project.

The app is still in Early Development. I wouldn't expect it to work very well. That said I do agree that it's pretty bad bug that probably should get a lot of attention.

kuflierl avatar Dec 13 '22 09:12 kuflierl

Totally fair. I didn't mean to come across as overly critical. I just mean that it is a little disappointing that the main feature of loading in the video library in order to watch movies/shows isn't working and it has seemed to get little attention.

Might be my expectations, but I would have anticipated this to be a critical failure thing that gets hotfixed right away.

Mat-Longinow avatar Dec 13 '22 22:12 Mat-Longinow

Probably folks don't upgrade their Jellyfin too aggressively, so it hits the new installs a lot harder and faster than most other users, so it goes... Very happy to hear you are working on it @LePips. Thank you very much for your time and effort.

Bronson-Brown-deVost avatar Dec 13 '22 22:12 Bronson-Brown-deVost

This issue is coming up for me on the just released public version (1.0.0). Both iPadOS and tvOS versions don't see any movies in the Media tab, but Collections and manually searching work fine. I don't see anything interesting in Jellyfin logs aside from the some slow response times. Movies do show up in the Jellyfin webUI, though.

Edit: I completely cleaned out my Jellyfin install on my Unraid server and also deleted the tvOS app. I started over from scratch first with Jellyfin and then the app, but I still have this issue.

Rookwork avatar Dec 29 '22 22:12 Rookwork

Me too. Switched to the released version. Same issue

psyciknz avatar Dec 29 '22 22:12 psyciknz

This issue also occurs for me on the iOS and Apple TV clients (latest released version)

easton36 avatar Jan 08 '23 18:01 easton36

Same here.

matthewpritchett avatar Jan 08 '23 23:01 matthewpritchett

I have the same problem. Initially, this was just with movies but now shows are not loading either, both libraries are empty.

dahrknet avatar Jan 09 '23 05:01 dahrknet

As @kcramer mentioned updating the "MediaStreamType.swift" file to include "Data" as a case will fix the issue.

/** Enum MediaStreamType. */
public enum MediaStreamType: String, Codable, CaseIterable {
    case audio = "Audio"
    case data = "Data"  // ADDED THIS LINE
    case video = "Video"
    case subtitle = "Subtitle"
    case embeddedImage = "EmbeddedImage"
}

catalystech avatar Jan 11 '23 05:01 catalystech

Don't worry, there's a reason this issue is tagged to my PR.

LePips avatar Jan 11 '23 05:01 LePips

Despite my griping, you guys are champions, and I appreciate you. Thanks for taking care of this 💪🏻

Mat-Longinow avatar Jan 11 '23 06:01 Mat-Longinow

Evening, I just downloaded the app on iOS and only the TV Shows were shown. No Movies were displayed, or appear when search (funny the search sees the movies to pre-select). I attempt to play a TV show but the app would refuse to play the video file.

Any suggestions to fix these.

fisherd80 avatar Jan 16 '23 20:01 fisherd80

case data = "Data"  // ADDED THIS LINE

Can confirm this fixes the issue for me as well, here's what I was seeing in the logs prior to applying the fix: [🔴 ERROR] ViewModel#60:handleAPIRequestError(displayMessage:completion:) Request failed: JSON Decoding failed: Underlying Error: Cannot initialize MediaStreamType from invalid String value Data - Coding Path: [Items,Index 7,MediaSources,Index 0,MediaStreams,Index 2,Type]

marvagabi avatar Jan 21 '23 20:01 marvagabi

Movie library is showing "No Results".

Downloaded the app a few days ago. First time using Jellyfin native app on my Apple TV's. Both have the same issue. Hope this can get fixed easily. I really enjoy the desktop app and iOS app. They both seem to work very well so far.

Just wanted to let you know. I'm very new to all this, like only began building my media server a couple weeks ago. Cheers.

avrgkarl avatar Jan 31 '23 16:01 avrgkarl

Same issue. Movies and Music Videos do not show up on either the iOS or tvOS apps. Shows come up fine but nothing else. Searching for titles doesn’t bring anything up.

rottedmood avatar Feb 12 '23 21:02 rottedmood

For me it shows up fine on the iOS app but on the Apple TV it only shows my shows fine.

EDIT; Nevermnd, iOS app has the same problem.

millionsofplayers avatar Feb 15 '23 17:02 millionsofplayers

I just encounterd this problem. I think this root cause problem came right when Jellyfin created a 'collections' folder/directory on our jellyfin server.. Because movies were showing up before I had certain 'collections' movies, once I downloaded them all in the "collection" I was unable to see my movies section and encountered this bug. It is fine on the iOS iphone app version(+ everywhere else) but not on the AppleTV. I have tried uninstalling and wiping data from appletv, and no change. I have also created a branch new user and it was the same issue.

deeerow avatar Feb 18 '23 03:02 deeerow

+1 for me too. Been through some manual troubleshooting steps to see if I can find a workaround.... nothing seems to be working for me. TV shows are working absolutely fine, but I'm finding that the Movies and Kids Movies libraries are causing the problems:

  1. Removed the collections + movies + kids movies libraries I'd previously created. Tried re-adding and hit the same issue.
  2. Removed again. Added one movie. That worked.
  3. Added four more - that did not work and I was returned to the "No Results" message.
  4. Went back to the one move - and it reappeared again.

I also found this thread on reddit which is quite useful to allow you to get to the swiftfin logs easily if you have an iphone: https://www.reddit.com/r/jellyfin/comments/106jzhe/swiftfin_apple_tvos_app_doesnt_work/

@marvagabi already posted this above... but just to confirm, this is the same error I'm seeing: [🔴 ERROR] ViewModel#60:handleAPIRequestError(displayMessage:completion:) Request failed: JSON Decoding failed: Underlying Error: Cannot initialize MediaStreamType from invalid String value Data - Coding Path: [Items,Index 4,MediaSources,Index 0,MediaStreams,Index 1,Type]

davetunnicliff avatar Feb 20 '23 21:02 davetunnicliff

I'm having this issue too with a fresh install of both jellyfin and swiftfin on my apple tv 4k

ThomasBeckham avatar Feb 23 '23 03:02 ThomasBeckham

I read this thread and couldn't see anything like this so: I tried pulling up a movie on my android phone and watched for a few minutes. Afterwards, the movie showed up on my apple tv swiftfin (version 1.0.0) in the recent section in home tab. I could play it just fine. Movies tab is empty.

misaim avatar Feb 23 '23 12:02 misaim