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

Does not find any videos in local media #46

Open
bsafh opened this issue Oct 31, 2022 · 5 comments
Open

Does not find any videos in local media #46

bsafh opened this issue Oct 31, 2022 · 5 comments

Comments

@bsafh
Copy link

bsafh commented Oct 31, 2022

Error message:

image
Invalid path. media-source://media_source/video/Japan

the media browser in HA does find the videos, URL is:

http://192.168.80.21:8123/media-browser/browser/app%2Cmedia-source%3A%2F%2Fmedia_source/%2Cmedia-source%3A%2F%2Fmedia_source%2Fvideo%2F./%2Cmedia-source%3A%2F%2Fmedia_source%2Fvideo%2FJapan

This translates to media-source://media_source/,media-source://media_source/video/./,media-source://media_source/video/Japan without UTL-Encoding, so the path media-source://media_source/video/Japan/ seems to be correct

It's HA Supervised installation (latest 2022.10.x) on Debioan, the "real" path is
root@homeassistant:/usr/share/hassio/media/video/Japan, the HassIO docker container sees this as /media/video/Japan

And yes, there are videos in there...

so, what's wrong here?

type: custom:gallery-card
entities:
  - path: media-source://media_source/video/Japan
    recursive: true
title: Japan Videos
show_reload: true
menu_alignment: responsive

@TarheelGrad1998
Copy link
Owner

Is this a media source you added, or is it one generated by default within HA?

I've yet to update the card's code to handle "recent" (last 6 months maybe) updates to HA's media sources. So it's possible you've fallen into that deficiency in the card. I do plan to do so but I'm not sure when I will have time to do the work.

You can try manually adding the media source and then using that name to see if that works:

  1. Add in configuration.yaml a media source (if it is not already):
    media_dirs: Japan: [*path to video*]/video/Japan

  2. use the media source in the path:
    `

  • path: media-source://media_source/Japan/

@bsafh
Copy link
Author

bsafh commented Nov 1, 2022 via email

@TarheelGrad1998
Copy link
Owner

Ah, sorry, gotcha. Then that should work then.

Is that the proper case? Also, have you tried it with the trailing "/"?

media-source://media_source/video/Japan/

@bsafh
Copy link
Author

bsafh commented Nov 1, 2022 via email

@TarheelGrad1998
Copy link
Owner

Not sure if you've had any luck with this, but try the new options in v3.4 and see if they help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants