Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-30-2015, 05:10 PM
|
#1
|
LQ Newbie
Registered: Jul 2013
Posts: 7
Rep: 
|
File Manager keep track of played media
I watch a lot of TV and need a way to keep track of what I have already watched. Right now that way is using Kodi modified to use MPV was the media player.
There are a few problems I have with Kodi. Problems listed below.
1. It is organized for specific type of media. Meaning you can't go to an audio file or picture and open it to listen or view.
2. It is bloated with all the fancy UI stuff not needed.
3. It has it's own media player (mostly fixed with adding redirect to MPV).
I have tried Midnight Commander but it doesn't keep track of media played and the terminal interface doesn't work as I would expect it to as a terminal interface (tab key doesn't auto complete, even if you modify the key bindings).
So what I need is something like a combination of Midnight Commander and Kodi.
Keyboard focused, keep track of media played, choice of media player, and ability to see all files and open all files (jpg, flac, pdf, ect..)
Does such a program exist? Do I have to go out of my way and invent yet another file browser?
Until such a file browser exists, I'm stuck with the slow Kodi having to go out and into my systems' default file browser when wanting to view jpegs and pdfs and going out and into the music portion to play music.
|
|
|
06-30-2015, 08:53 PM
|
#2
|
LQ Newbie
Registered: Jul 2013
Posts: 7
Original Poster
Rep: 
|
From my research it seems like Kodi is the only solution, and I need to find a solution to fix Kodi to show all files.
|
|
|
07-01-2015, 01:44 AM
|
#3
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
a partial solution is to write yourself a wrapper around mpv.
first, make sure you have "$HOME/bin" in your $PATH.
then, create a file "$HOME/bin/mpv":
Code:
#!/bin/sh
echo "$(date): $@" >> "$HOME/playedfiles.txt"
/usr/bin/mpv "$@"
exit 0
now everytime you play sth with mpv, it will be added to playedfiles.txt, which you can look at with any text editor.
ps: you have to make sure that kodi calls for "mpv" and not "/usr/bin/mpv".
|
|
|
07-01-2015, 07:28 AM
|
#4
|
LQ Newbie
Registered: Jul 2013
Posts: 7
Original Poster
Rep: 
|
Kodi already keeps track of what I watched, why it's the only solution right now. But Kodi only shows media files for what you're viewing.
|
|
|
07-03-2015, 03:45 AM
|
#5
|
LQ Addict
Registered: Dec 2013
Posts: 19,872
|
oh, i see now what you want.
you want the file manager to automatically play files you haven't seen yet.
I'm sure many file managers have plugin capabilities, so you could write yourself a plugin that does just that.
there's another non-graphical file manager called "ranger", you might want to start there (just because it's under active development, and has media file previews).
|
|
|
07-03-2015, 04:46 AM
|
#6
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep: 
|
I agree with ondoho,... What you probably want to do is create a plugin for a file manager that uses the touch command to adjust the timestamp for the files which you've watched already and then just sort by age...
|
|
|
07-03-2015, 10:33 AM
|
#7
|
LQ Newbie
Registered: Jul 2013
Posts: 7
Original Poster
Rep: 
|
Quote:
Originally Posted by ondoho
oh, i see now what you want.
you want the file manager to automatically play files you haven't seen yet.
I'm sure many file managers have plugin capabilities, so you could write yourself a plugin that does just that.
there's another non-graphical file manager called "ranger", you might want to start there (just because it's under active development, and has media file previews).
|
Actually, I just want it to put a check box saying I saw it.
I'm probably going to have to ether modify Kodi to show everything or write my own file manager.
|
|
|
07-04-2015, 12:40 AM
|
#8
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep: 
|
How are you recording the shows? MythTV??? I thought MythTV had a function to let you know what you had watched and what you didn't...
|
|
|
07-04-2015, 01:26 AM
|
#9
|
LQ Newbie
Registered: Jul 2013
Posts: 7
Original Poster
Rep: 
|
Quote:
Originally Posted by JaseP
How are you recording the shows? MythTV??? I thought MythTV had a function to let you know what you had watched and what you didn't...
|
I'm ripping them from BD and DVDs mostly. I don't watch live because they are foreign and not on local tv.
|
|
|
07-04-2015, 01:35 AM
|
#10
|
Senior Member
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep: 
|
In that case, one thing you might consider is simply writing a Python script that is set to be the default handler for that file type (the file managers in most DE's have a setting for the default file handler). The Python script would launch the file with your preferred media app and in the script, use touch to "age" the files, "shoving" them to the back, as I suggested above...
Last edited by JaseP; 07-04-2015 at 01:36 AM.
|
|
|
All times are GMT -5. The time now is 09:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|