LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-30-2015, 04:10 PM   #1
grmrgecko
LQ Newbie
 
Registered: Jul 2013
Posts: 7

Rep: Reputation: Disabled
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.
 
Old 06-30-2015, 07:53 PM   #2
grmrgecko
LQ Newbie
 
Registered: Jul 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-01-2015, 12:44 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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".
 
Old 07-01-2015, 06:28 AM   #4
grmrgecko
LQ Newbie
 
Registered: Jul 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-03-2015, 02:45 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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).
 
Old 07-03-2015, 03:46 AM   #6
JaseP
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: Reputation: 157Reputation: 157
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...
 
Old 07-03-2015, 09:33 AM   #7
grmrgecko
LQ Newbie
 
Registered: Jul 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
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.
 
Old 07-03-2015, 11:40 PM   #8
JaseP
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: Reputation: 157Reputation: 157
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...
 
Old 07-04-2015, 12:26 AM   #9
grmrgecko
LQ Newbie
 
Registered: Jul 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JaseP View Post
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.
 
Old 07-04-2015, 12:35 AM   #10
JaseP
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: Reputation: 157Reputation: 157
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 12:36 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for a Media Server that will keep track of songs played jjthomas Slackware 4 11-20-2011 09:14 PM
sound card not detected!,and media not played. irajjs Fedora 1 01-27-2010 10:14 AM
Changing audio track in Media Player Classic kamransoomro84 General 9 10-21-2007 01:45 PM
Media manager incl. support for removeable media p41elvis Linux - Software 0 03-18-2007 09:13 AM
no media files are played iskiri SUSE / openSUSE 5 01-09-2006 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration