SkyD666 / AniVu

All-in-one Android app for RSS, BitTorrent dl & play. MVI arch, Material You style. ⭐️ Star to support!
https://t.me/SkyD666Chat
GNU General Public License v3.0
532 stars 14 forks source link

Episode Number and Name detection #74

Open onnesoom opened 1 month ago

onnesoom commented 1 month ago

Current Functionality of the App

The app currently displays the names of all files within a folder in alphabetical order and presents the full file names. However, which can be inconvenient in several situations:

Long File Names

If the files have long names, they will be displayed in full. This can consume excessive screen space and make it difficult to recognize the episode numbers.

Non-Alphabetical or Non-Chronological Order

If the files are not downloaded from the same source (e.g., SubsPlease, Ember, ACG.rip), they will appear unorganized and unsorted. This lack of order is not ideal.

Presence of episodes.json

In modern media servers and library apps (e.g., Jellyfin, Plex, Emby, Aniyomi), media folders often contain an episodes.json file. The current model does not detect or display the corresponding episode names from this file.

The format of episodes.json is as follows:

[
    {
        "episode_number": 1,
        "name": "Episode 1 : Ike, Commander of the Undying Brigade (不死旅団長アイク• Fushi Ryodanchou Ike)",
        "date_upload": "2024-06-26T00:00:00",
        "scanlator": "Opening"
    },
    {
        "episode_number": 2,
        "name": "Episode 2 : White Rose Knights Commander Alistair (白薔薇騎士団長アリステア• Shiro Bara Kishidanchou Alistair)",
        "date_upload": "2024-07-03T00:00:00",
        "scanlator": "Canon"
    },
    {
        "episode_number": 3,
        "name": "Episode 3 : Traitor (裏切者• Uragirimono)",
        "date_upload": "2024-07-10T00:00:00",
        "scanlator": "Ending"
    }
]

In this format:

Sources:

Improvements with Episode Number Recognition

Adding episode number recognition to the app will provide several benefits:

Video 1 Video 2 Video 3
SkyD666 commented 1 month ago

A question: Is the content of episodes.json unified for all software?

onnesoom commented 1 month ago

A question: Is the content of episodes.json unified for all software?

There are two primary approaches to saving metadata:

1. Plex, Emby (Metadata from the Internet)

These services typically automatically fetch metadata from the internet. Users can edit this data if desired, but the process is lengthy. The .nfo files used by these services generally look like this:

Screenshot Screenshot

Drawbacks of this method:

Overall, the lack of third-party tools for creating metadata and the dependency on specific databases are significant limitations.

2. Tachiyomi Fork Group and Offline Library Management

These services save metadata in a single JSON file with a consistent structure, as described in the original issue. There are multiple third-party software tools available to produce this type of JSON data. For instance, you can even use ChatGPT to generate the necessary JSON:

ChatGPT Record

Advantages of this method:

Downside:

onnesoom commented 1 month ago

For chatgpt , u need to add custom instructions from settings , thats it .

onnesoom commented 1 month ago

Additional information I forgot to add : the format for the T00:00:00 Part is THH:MM:SS