LeoKlaus / plappa

An Audiobook client for Jellyfin and AudioBookShelf, written in Swift/SwiftUI.
https://plappa.me
159 stars 0 forks source link

[FEATURE REQUEST] Support Search and sorting within a book #76

Closed wfrank21 closed 3 days ago

wfrank21 commented 2 months ago

Describe the bug Searching is possible in the books overview but not in a book directly. Also the sorting seems all over the place, I cannot listen to a book in order without scrolling through 100+ files.

To Reproduce Go to books Click on book See that all files are in random order

Expected behavior Sorting by name and a search box within a book view would be nice

Environment(please complete the following information):

LeoKlaus commented 2 months ago

Hey wfrank21, thanks for reaching out!

The files you see when tapping a book should only be the chapters for that one book. If that's not the case for you, it would help me if you could try to provide some more information about the files you're trying to listen to and how they're stored (you can look at an example here)

plappa will sort the files for an audiobook by their track number and group files by the "album" attribute in Jellyfin. I don't think sorting chapters by anything but their number makes sense, but I could certainly add a search bar.

I feel like the issue here is more that plappa groups more than one book in your case so the interface might look/feel very cluttered. This is what it should look like for a single book: image

wfrank21 commented 2 months ago

Yeah my problem here is that seemingly all tracks have track number 1. But changing this for hundreds of files would be a pain. So just having the option to sort by name would help me here.

LeoKlaus commented 2 months ago

But changing this for hundreds of files would be a pain. So just having the option to sort by name would help me here.

You can use something like MP3Tag to automatically assign ascending track numbers to all files in a folder:

image

This is a quickest fix I can offer you. plappa uses the index number of each track not only for determining the file to play, but also to track progress and decide which file to play next.

I'm looking for a solution to assign ascending track numbers by default, as all files having track number 1 does indeed break everything.

LeoKlaus commented 2 months ago

Okay, I think I managed to implement a fix. You can join the TestFlight Beta for plappa at this link: https://testflight.apple.com/join/CPlREvRs and download the latest version (1.1.4 Build 5).

You will have to go into the book detail view for the affected books and pull down to refresh once for the fix to work (or just uninstall plappa before installing from TestFlight).

wfrank21 commented 2 months ago

Hi there, this is great news. I will try that today. Joined Testflight already.

LeoKlaus commented 2 months ago

Great! Let me know if it worked :)

wfrank21 commented 2 months ago

Numbering is still not the way I would order it, but at least I can play the correct track now. I will use MP3Tag as a workaround.

LeoKlaus commented 2 months ago

Numbering is still not the way I would order it, but at least I can play the correct track now. I will use MP3Tag as a workaround.

Alright, I'll see if I can add something to make this more seamless. You may also want to check out AudioBookShelf, it's a self hostable media server sepcifically for audiobooks and podcasts and it's supported by plappa as well. It would allow you to add the show as podcast rather than audiobook which would make plappa keep the progress for individual episodes (sorting for those is coming soon).

wfrank21 commented 1 month ago

Hi there, I set up an Audiobookshelf Server now with the same files which I have in Jellyfin. Sadly Plappa has the same issue here: Sorting is all over the place. You said sorting is coming soon, so just wanted to give you feedback there. For Jellyfin the MP3Tag Trick you told me fixed my problems. Wanted to try Audiobookshelf as it's a specifically for podcasts, will use Jellyfin until sorting for Audiobookshelf is ready. Thank you for your help

LeoKlaus commented 1 month ago

Hi there, I set up an Audiobookshelf Server now with the same files which I have in Jellyfin. Sadly Plappa has the same issue here: Sorting is all over the place. You said sorting is coming soon, so just wanted to give you feedback there. For Jellyfin the MP3Tag Trick you told me fixed my problems. Wanted to try Audiobookshelf as it's a specifically for podcasts, will use Jellyfin until sorting for Audiobookshelf is ready. Thank you for your help

I tried around a bit with ABS and noticed that when uploading files, all the dates have a different format that was not correctly interpreted by plappa.

I've now fixed those issues and have added sorting for podcast episodes with the latest TestFlight release (1.1.5 build 8). You can join the TestFlight beta and see if that improves the situation with your ABS server here: https://testflight.apple.com/join/CPlREvRs

wfrank21 commented 1 month ago

This is perfect. IMG_1491

LeoKlaus commented 3 days ago

I'll close this for now as I think it is no longer needed.

If you feel otherwise, please reopen this issue.