YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Would like to be able to mark or indicate movie as a 'new' or unwatched movie and have a menu created for them #29

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 29 created by Omertron on 2008-06-04T12:23:31.000Z:

What is the expected output? What do you see instead?

On main ( index.html) i'd like to have a 'new release ' or 'unwatched' menu item. It would contain all the movies that i have indicated 'somehow' that i would like to include in this menu.

What version of the product are you using? On what operating system? 1.07 Please provide any additional information below. A couple thoughts on how to 'mark' a movie as 'new'...

  1. create a 'Unwatched' subdir that is scanned by program. user places shortcuts to real movie in there which are scanned .. if shortcut found, add to the 'Unwatched' menu. This would allow you to keep actual movies in whatever directories you want and easily add/remove from menu by creating deleting shortcuts. ( i use this technique with myihome server right now)
  2. plain txt file with movie names listed inside. name of text file indicates menu name. # 1 above would be easier to maintain i think.

This could be extended to allow creation of whatever menu item you would like .. 'wife' 'kids' 'favorites' etc

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2008-06-08T13:17:55.000Z:

<empty>

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2008-06-09T14:54:26.000Z:

Nice to see this was accepted. Another thought .. whatever mechanism is used to do this, it would be good if you could rerun moviejukebox ( maybe with a special switch) that indicates you just want to update the 'new' menus only. the latest version (8) is great but it does seem to run alot longer than the old one ( 400 movies) and I wouldn't want to have to regenerate everything each change to the 'new' menu.

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2008-07-11T20:18:26.000Z:

<empty>

Omertron commented 9 years ago

Comment #4 originally posted by Omertron on 2008-07-14T19:45:14.000Z:

See also issue 93 for additional requirements, although I think they are the same or similar enough.

Omertron commented 9 years ago

Comment #5 originally posted by Omertron on 2008-07-17T08:55:28.000Z:

+1

Omertron commented 9 years ago

Comment #6 originally posted by Omertron on 2008-09-10T08:43:23.000Z:

+1

Omertron commented 9 years ago

Comment #7 originally posted by Omertron on 2008-09-28T19:38:52.000Z:

+1 - a must for me.

Omertron commented 9 years ago

Comment #8 originally posted by Omertron on 2008-10-10T19:54:20.000Z:

<empty>

Omertron commented 9 years ago

Comment #9 originally posted by Omertron on 2008-10-17T14:35:16.000Z:

<empty>

Omertron commented 9 years ago

Comment #10 originally posted by Omertron on 2008-11-29T22:34:53.000Z:

+1

I would also like to see this where after you watch a complete movie, it would mark it watched, or you could do so manually as well.

Omertron commented 9 years ago

Comment #11 originally posted by Omertron on 2008-11-29T23:41:39.000Z:

+1 great if you could manually mark it as watched.

Omertron commented 9 years ago

Comment #12 originally posted by Omertron on 2008-12-09T13:34:46.000Z:

+1 A great enhancement

Omertron commented 9 years ago

Comment #13 originally posted by Omertron on 2008-12-10T13:01:53.000Z:

Whith usage of XBMC MC .nfo files maybe the tag could be used to filter.

Omertron commented 9 years ago

Comment #14 originally posted by Omertron on 2008-12-10T15:26:55.000Z:

the "watched" attribute is no longer used by XBMC, it has been replaced with the "count" field. However, YAMJ won't be able to update any NFO files realtime when a movie is watched in order to increment the count.

Omertron commented 9 years ago

Comment #15 originally posted by Omertron on 2008-12-11T05:31:09.000Z:

Wow. This enhancement request has been around forever. So I guess it's about time we did something with it, eh? :) I was thinking about this a bit, and here's an idea I came up with that hopefully will be flexible enough.

Have a specially named file, and YAMJ will check for the existence of this file in any directory. If it finds this file, then all of the movies within that directory will be put into a custom named category. That category can be whatever the user wants ... "Unwatched", "Kids TV", whatever. This will be specified within the file. And there will be no need to manually add all of the movies you want in the category to the file, since we can have it simply take all of the movies within that same directory.

Right now with the XBMC xml NFO you can create your own custom genres, but this suggested method will instead create a new category and mass assign all of the movies in the directory to it all at once. Easy peasy lemon squeezy. Thoughts?

Omertron commented 9 years ago

Comment #16 originally posted by Omertron on 2008-12-11T07:25:47.000Z:

Nope, I dislike that idea. I have all of my movies in the same directory so this would be near useless to me. I also have all my tv shows in sub-directories and this also wouldn't help that.

If we could somehow use javascript to create/delete a file when a video file is played the next run of YAMJ could re-organise the watched/unwatched category

Omertron commented 9 years ago

Comment #17 originally posted by Omertron on 2008-12-11T07:26:27.000Z:

Actually I think the enhancement needs some sort of persistent database such as Sybas is "supposed" to be implementing.

Omertron commented 9 years ago

Comment #18 originally posted by Omertron on 2008-12-11T15:33:58.000Z:

Oh, an enhancement like this even with a javascript solution would be near useless to me as well. In fact, most of the coding I do on here has absolutely no benefit to myself whatsoever. YAMJ has been doing all that I need it to do for many months now. But I'm just trying to think of how others may use it.

Omertron commented 9 years ago

Comment #19 originally posted by Omertron on 2008-12-12T13:46:46.000Z:

I think that the solution in Comment 15 would be perfect for my needs. I always put new movies into a "New" directory and after watching it i erase it, put it in a special watch folder for my wife or put it into the general archive.

This solution would be flexible enough for me and hopefully for many others.

Omertron commented 9 years ago

Comment #20 originally posted by Omertron on 2008-12-13T23:33:03.000Z:

Ideally, there should be a backend cgi script to run on the PCH that the YAMJ html pages can call with Javascript. The cgi can simply be a shell script. That way the system will allow the http server to write things and update files. Perhaps each movie directory would have a sub-directory created like STATUS/ which would have simple .txt files that match the movie name. Otherwise, use dirname.txt to match the directory and store info (.ini or properties style) about each movie.

Omertron commented 9 years ago

Comment #21 originally posted by Omertron on 2008-12-14T15:37:40.000Z:

This would make YAMJ perfect :)

Omertron commented 9 years ago

Comment #22 originally posted by Omertron on 2008-12-24T07:30:15.000Z:

I'd really like something that let's you mark something as watched. Not so much for movies (not at all for movies actually), moreso for TV episodes. I regularly forget where I'm up to in a series, so if a checkmark can be added when an episode is watched (or whatever), that'd be awesome.

Omertron commented 9 years ago

Comment #23 originally posted by Omertron on 2009-01-02T14:52:09.000Z:

I would really really like such a feature!

Omertron commented 9 years ago

Comment #24 originally posted by Omertron on 2009-02-16T21:07:28.000Z:

i would really would like to see this feature! I don't want to delete my watched episodes, but I also forget which episode i last watched

Omertron commented 9 years ago

Comment #25 originally posted by Omertron on 2009-02-16T23:48:41.000Z:

Many users wanting this but no real offers on how to implement it -- because it's not easy. There are way too many variables involved:

The only way I could see this is manual intervention by the user to mark it watched with JavaScript code, but information would still have to be saved locally for the next run of YAMJ or the next time the user goes into the same (TV) page.

Perhaps instead of 'watched', a more useful idea is more simply a 'last viewed' flag such that most users want to know what tv episode they are on, or which part of a multi-part miniseries they last viewed. This way the HTML page would use code that could call a local cgi script when the user picks a PLAY link (not so good for playlist), then the cgi would flag it for that movie (more than 1 part) or TV series. None of this would be known to the output folder back on your PC, but the local HTML files on the PCH would call the same cgi script would could tell it which episode to flag as last watched.

Omertron commented 9 years ago

Comment #26 originally posted by Omertron on 2009-02-23T10:28:59.000Z:

@garp999, these problems can all be overcome. imo your looking for problems now.

If this feature woudl be added it would be perfect when u hit play on the series item and it plays your next episode. Saves a lot of clicking

Omertron commented 9 years ago

Comment #27 originally posted by Omertron on 2009-02-23T10:30:33.000Z:

an unwatched menu is not important for me. But seeing wich episodes/moves I watched is more important imo

Omertron commented 9 years ago

Comment #28 originally posted by Omertron on 2009-04-17T12:52:39.000Z:

I have cross-compiled xsltproc for the NMT. That's a command-line program which applies an XSL template to an XML file. I've also written a little XSL file that just increments the field (if present) and copies everything else verbatim.

With an NMT-based XSL processor available, implementing this feature should now be pretty easy. I just have to write a PHP script that gets called when you play a movie (or part or episode) which calls the XSLT to increment the count, then regenerates the details page and the playlist.

Omertron commented 9 years ago

Comment #29 originally posted by Omertron on 2009-04-17T15:25:09.000Z:

The PHP route is probably best long term. I also think that adding something inside of mono-wrapper would be easiest although not everyone has that in use... but it could be a requirement if they want this feature. Also, since there are other things I'd like mono-wrapper to do such as clear cache before playing 1080p movie, it might be better to add a pre-start and post-play script that allows users to add things they want done, without the need for anything changes to Journey's mono-wrapper.

Omertron commented 9 years ago

Comment #30 originally posted by Omertron on 2009-05-04T09:57:32.000Z:

Issue 765 has been merged into this issue.

Omertron commented 9 years ago

Comment #31 originally posted by Omertron on 2009-05-06T15:17:29.000Z:

It's time for an update for this. I have added "Watched" field on the details page with a simple Yes/No toggle link. The link submits a form, which triggers a CGI script that updates the XML's field and then re-processes the XML through the detail.xsl file to get a new HTML page. It's working great for me! Not going to knock anyone's socks off, but it's a start. There's no index of watched/unwatched movies yet.

Because of distribution of execute permission complications, I'm going to make the CGI script and xsltproc binary into a Community Software Installer package. Having that package installed will become a prerequisite for this feature, which will allow me to rely on a standard location for the CGI and xsltproc (which would be configurable via the config file, for folks who want to do that themselves).

There's just a little more work to be done to make the CGI script generic enough to meet the needs of any situation (basically, it'll need to take an unlimited number of (xml, xsl, output) triples, and it'll run "xsltproc -o output xsl xml" for each set passed in). Oh, and I went with Bourne shell instead of PHP.

And then I need to figure out how to make a CSI package. :) The big hold-up there is that CSI doesn't seem to want to work on my system. If anyone else wants to tackle that part, let me know and I'll send you the files.

Omertron commented 9 years ago

Comment #32 originally posted by Omertron on 2009-05-06T15:18:18.000Z:

Just to be clear, I'm talking about my working copy. I haven't committed anything yet.

Omertron commented 9 years ago

Comment #33 originally posted by Omertron on 2009-05-14T01:14:00.000Z:

Hi all, have you considered using NMTServer with YAMJ ? It adds some very powerfull features to YAMJ. I know not everybody has a computer that can act as a "server", but still, the dynamic frontend is just so powerfull.

Omertron commented 9 years ago

Comment #34 originally posted by Omertron on 2009-06-08T03:35:08.000Z:

sebasttj,

Why not link the cgi script to the play link on the plage? So that when the file is played, it executes the cgi script before playing the file?

Omertron commented 9 years ago

Comment #35 originally posted by Omertron on 2009-08-25T07:40:16.000Z:

<empty>

Omertron commented 9 years ago

Comment #36 originally posted by Omertron on 2009-10-20T08:07:51.000Z:

Is there any progress on this enhancement?

Omertron commented 9 years ago

Comment #37 originally posted by Omertron on 2009-10-20T09:09:57.000Z:

http://www.networkedmediatank.com/showthread.php?tid=29639 There is some discussion there and reasons for the complexity of the request

Omertron commented 9 years ago

Comment #38 originally posted by Omertron on 2009-10-20T15:35:36.000Z:

Thanks!

Omertron commented 9 years ago

Comment #39 originally posted by Omertron on 2009-12-30T13:11:19.000Z:

Can comment # 15 be implemented please (i.e. a file in a directory that indicated all files/links in that directory should be places in a specific category), It should be fairly easy to implement and will resolve the issue for some/many people, any thing over an above this is going to be more complicated.

Omertron commented 9 years ago

Comment #40 originally posted by Omertron on 2009-12-30T19:16:19.000Z:

I like that idea, but I have all episodes of one serie in one directory. For me this enhancement is a benefit if I can see directly which episode I have seen for the last time.

Omertron commented 9 years ago

Comment #41 originally posted by Omertron on 2010-01-17T18:29:52.000Z:

1+ Great idea just what i have been waiting for.

Omertron commented 9 years ago

Comment #42 originally posted by Omertron on 2010-01-18T04:31:28.000Z:

+1 on Comment 39 (originally Comment 15). Excellent interim solution. Ultimately would like something automated, but am more than willing to do a bit of copy/paste to implement the same result now.

Omertron commented 9 years ago

Comment #43 originally posted by Omertron on 2010-01-21T10:22:55.000Z:

I like this intermediate solution also. +1

Omertron commented 9 years ago

Comment #44 originally posted by Omertron on 2010-02-07T10:09:03.000Z:

This would totally rock my world :)

Omertron commented 9 years ago

Comment #45 originally posted by Omertron on 2010-02-15T11:33:41.000Z:

Great idea with the links!

Omertron commented 9 years ago

Comment #46 originally posted by Omertron on 2010-03-08T19:10:42.000Z:

I'll think of a way to do this :)

Omertron commented 9 years ago

Comment #47 originally posted by Omertron on 2010-05-10T05:59:15.000Z:

just to reiterate. NMTSERVER WILL DO THIS for all of you who want this feature (great for tv series). You do need a PC to act as the server though.

Omertron commented 9 years ago

Comment #48 originally posted by Omertron on 2010-05-11T09:11:22.000Z:

Hi Bob, Appreciate the input, but NMTSERVER isn't appropriate for everybody, I dont run windows for example.

Omertron commented 9 years ago

Comment #49 originally posted by Omertron on 2010-05-11T18:03:00.000Z:

hi all, I see a little problem: this feature request is 2y old. I've read the comments trying to figure out the best solution. And I see the 74 stars. Maybe someone could start implementing one of the proposed solution(the easiest), then someone else will develop another one... etc... we could got to a range of sub-optimal solutions... way better than zero solutions... Unfortunatelly I'm only a legacy C/C++ developer ;) Tnx so much for working on YAMJ !

Omertron commented 9 years ago

Comment #50 originally posted by Omertron on 2010-05-11T19:35:59.000Z:

The problem is that there is no silver bullet solution. Whatever we implement has to be suitable for all situations, especially for those without a hard disk in their PCH