Skip to content
New issue

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

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

Already on GitHub? # to your account

FR: Open directory/folder #504

Open
Theluga opened this issue Nov 8, 2024 · 6 comments
Open

FR: Open directory/folder #504

Theluga opened this issue Nov 8, 2024 · 6 comments
Labels
APP Issue related to the Application enhancement New feature or request

Comments

@Theluga
Copy link

Theluga commented Nov 8, 2024

Like the video automatically play the next file inside the folder? Or an option to add this behavior as default?

Ex: In a folder with 3 files: video1.mp4 video2.mp4 and video3.mp4

Open video2.mp4 (it will play until the end and start playing video3.mp4)

ending video3.mp4 stops the next file.

The three 3 videos could be added to playlist or an option that will always add the folder to playlist.

Could it be done?

Thank you!

@Rafostar
Copy link
Owner

Rafostar commented Nov 8, 2024

Currently, you can just select one or more files at once in a folder and open them with Clapper from files manager or from Clapper "Add" option. Items play one after another if you set queue progression mode to "consecutive".

Other than that, I can consider adding an ability to simply open a folder for user convenience.

@Theluga
Copy link
Author

Theluga commented Nov 8, 2024

It would be great to have a cli way to open a file to have a custom open function on the file manager.

like:

clapper --folder-of-file-to-playlist /path/to/video.mkv

In this way, the file would open and the folder /path/to/ of this file would automatically be added to the playlist.

If you could only add this option --folder-of-file-to-playlist that would be perfect.

Thank you for your great work!

@Rafostar
Copy link
Owner

Rafostar commented Nov 8, 2024

clapper --folder-of-file-to-playlist /path/to/video.mkv
In this way, the file would open and the folder /path/to/ of this file would automatically be added to the playlist.

We cannot do that, cause other files would not go through the portal. What we can do is:

clapper /path/to/folder

And this would add all files from that folder to the queue and start playing them from the first one.

@Theluga
Copy link
Author

Theluga commented Nov 8, 2024

yes, it would also be very good!
Now it only says unplayable content.

specially if:

clapper /path/to/folder

would add the folder to playlist without changing the playing file.

Clapper already open and playing some file.

running clapper /path/to/folder would only add the playlist on the running clapper instance playing the said file without changing the video being played.

It would work great!!!

Thank you for your patience and willingness to help!

@Rafostar Rafostar changed the title Play next file inside folder. FR: Open directory/folder Nov 8, 2024
@Rafostar Rafostar added enhancement New feature or request APP Issue related to the Application labels Nov 8, 2024
@Rafostar
Copy link
Owner

Rafostar commented Nov 9, 2024

would add the folder to playlist without changing the playing file.

For this --enqueue option exists.

clapper /path/to/folder

This is an equivalent to "Open" action, meaning the files are added to the queue and if something else played it will change to the first of newly opened/added files.

On the other hand:

clapper --enqueue /path/to/folder

This will only add new/more items to the playback queue (without changing what is currently playing).

@Theluga
Copy link
Author

Theluga commented Dec 22, 2024

I know it's a little off-topic, I got the clapper to open a file and automatically add all other files on the folder to play in the order of their names. It was adapting some VLC script with the same purpose:

https://github.com/Theluga/VLC-Play-Next-File-NVIDIA-dGPU/blob/master/clapper_next.sh

Then, I just need to create a custom .desktop file directing to this script to open the files. It works like a charm.

And this was basically what I really wanted. So I am just posting here if someone is looking for a way to do that.

Thank you for everything!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
APP Issue related to the Application enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants