Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DURATION is not displayed for all FILES #6

Open
tgmb1 opened this issue Jan 4, 2025 · 10 comments
Open

DURATION is not displayed for all FILES #6

tgmb1 opened this issue Jan 4, 2025 · 10 comments
Labels
bug Something isn't working external issue unrelated to the addon

Comments

@tgmb1
Copy link

tgmb1 commented Jan 4, 2025

duration isn't being displayed for many files Sir , please check

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

I can only return what the google drive api returns. If it doesn't return a duration, there won't be a duration to display. You can check the logs. (You have to enable them first in the cloudflare worker settings and redeploy).

The logs will show the files that were returned from the google drive api and whether there was a duration returned or not. You can click on a specific log line to expand the details and see the file information.

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

image

This is what it says in the API docs

@tgmb1
Copy link
Author

tgmb1 commented Jan 4, 2025

I turned on LIVE LOGS and read it , I found nothing 🙁
files were uploaded a few months back
Any other way to view the duration without playing the video?

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

image

enable live logs, make a request through stremio, and look for this log. expand it and you'll see a list of files with information that the addon got.

image

There is unfortunately no other way to view the duration.

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

If you are seeing a durationMillis in a file for which you are not seeing a duration on Stremio, it could be that theres not enough space for the duration since its on the 5th line. I'm not sure about this and I don't have an android TV to test how many lines it can display, I only heard this in passing elsewhere.

I believe you can choose a theme in the Stremio settings to change this and let you see more lines.

It could just be that Google Drive isn't returning the duration, but yeah just another potential issue.

@tgmb1
Copy link
Author

tgmb1 commented Jan 4, 2025

I modified the code to show only file name and duration now
I also thought of this space issue , so I tested with a few files named just 'movie name year.mkv'
it's bad luck even though space is left

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

The duration probably isn't being returned then. Have you checked the logs to be sure?

@tgmb1
Copy link
Author

tgmb1 commented Jan 4, 2025

you are correct
2) doesn't have DURATION , WIDTH , and HEIGHT

  1.        "fileExtension": "mkv",
           "mimeType": "video/x-matroska",
           "size": "11111111111",
           "id": "1111111111111",
           "name": "abc.mkv",
           "videoMediaMetadata": {
             "width": 111,
             "height": 111,
             "durationMillis": "111111111"
           }
         }
       ]
    
  2.        "fileExtension": "mkv",
           "mimeType": "video/x-matroska",
           "size": "11111111111",
           "id": "1111111111111",
           "name": "xyz.mkv"
         }
       ]
    

@Viren070
Copy link
Owner

Viren070 commented Jan 4, 2025

Yeah I don't know why it wouldn't return it if its not a new file. Not much I can do about this unfortunately.

@tgmb1
Copy link
Author

tgmb1 commented Jan 4, 2025

Ok Sir , no problem

@Viren070 Viren070 added external issue unrelated to the addon bug Something isn't working labels Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external issue unrelated to the addon
Projects
None yet
Development

No branches or pull requests

2 participants