FAQ  •  Register  •  Login

Video: add year of the movie

<<

scalp

Serviio newbie

Posts: 10

Joined: Sun Dec 05, 2010 7:38 pm

Post Sun Dec 05, 2010 10:26 pm

Video: add year of the movie

Hi,
As you get the year of the movie into the metadata, could it be possible to sort by year, as it is already possible by genre, actor...
Thanks a lot,
Pascal.
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Fri Jul 29, 2011 11:05 pm

Re: Video: add year of the movie

I'd very much like this too, viewing by year it's easier to watch recent movies
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Jul 30, 2011 2:40 am

Re: Video: add year of the movie

would this be just movies or all videos with a year (e.g. episodes). WOuld we have MOvies by Year or just By Year?
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Sat Jul 30, 2011 4:46 am

Re: Video: add year of the movie

zip wrote:would this be just movies or all videos with a year (e.g. episodes). WOuld we have MOvies by Year or just By Year?


i would guess only movies by year cause looking at series metadata it doesnt show rekease info :)
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Wed Aug 03, 2011 1:15 pm

Re: Video: add year of the movie

Yes by Movies only please
TV series is fine just the way it is. :D

Also is there a way of organising the library in the order of preference of user. Such as I prefer "Folder" to be on top, followed by "Last viewed" and "last added" then the remaining library folders.
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Aug 03, 2011 1:30 pm

Re: Video: add year of the movie

Xmantium wrote:Yes by Movies only please
TV series is fine just the way it is. :D

Also is there a way of organising the library in the order of preference of user. Such as I prefer "Folder" to be on top, followed by "Last viewed" and "last added" then the remaining library folders.


would that not be done by the renderer rather than serviio as from what i see from my device is they are in alpha order.
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Wed Aug 03, 2011 3:03 pm

Re: Video: add year of the movie

Cerberus wrote:would that not be done by the renderer rather than serviio as from what i see from my device is they are in alpha order.

On my ps3 it's in alphabetical order but on my Bravia TV it's the same order as in the presentation tab, so it would great if the user can change the order in the presentation tab
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed Aug 03, 2011 3:10 pm

Re: Video: add year of the movie

Xmantium wrote:
Cerberus wrote:would that not be done by the renderer rather than serviio as from what i see from my device is they are in alpha order.

On my ps3 it's in alphabetical order but on my Bravia TV it's the same order as in the presentation tab, so it would great if the user can change the order in the presentation tab


There were a request for an option to rearrange the library folder list:
https://bitbucket.org/xnejp03/serviio/i ... older-list
You could add your request too
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Wed Aug 03, 2011 3:32 pm

Re: Video: add year of the movie

It says library rearrange going to be implemented in 0.6 build... Has it?
I'm not part of the beta test program
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

Cerberus

User avatar

DLNA master

Posts: 4114

Joined: Sun Jan 02, 2011 5:20 pm

Location: Reading, UK

Post Wed Aug 03, 2011 3:35 pm

Re: Video: add year of the movie

Xmantium wrote:It says library rearrange going to be implemented in 0.6 build... Has it?
I'm not part of the beta test program


not yet no..
Phil Bennett
Beta Tester Group
Wiki | FAQ

Samsung LE40C750 LCD | Samsung BD-C5900 | Sony PS3 | Windows 7 |
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Aug 04, 2011 3:50 am

Re: Video: add year of the movie

some renderers follow the order sent by the server, some dont (Xbox, C series Samsung TVs, etc). I won't be doing that for now, it seems very minor functionality enhancement, but if you can, you can do that by editing contentDefinition.xml file insede serviio.jar (just unzip it)
<<

Xmantium

User avatar

DLNA master

Posts: 1396

Joined: Sat Jul 23, 2011 2:12 pm

Location: Manchester, UK

Post Thu Aug 04, 2011 3:26 pm

Re: Video: add year of the movie

Thanks zip. It would be nice to see this added as a GUI for novice users.
For anyone who want to do this open serviio.jar, i used winrar, navigate to \org\serviio\upnp\service\contentdirectory\definition\
and edit contentDirectoryDef.xml to order you want, then add and replace in winrar, you must do a full restart

But I do hope you can add "Year" to movies on 0.6 build
Sony Bravia 2010 52NX803 - Sony PS3 - Xbox 360
Serviio running on QNAP NAS 639 Pro - 1.6 Intel Dual Core - 2GB RAM and QNAP NAS 121 - 2Ghz ARM Marvell - 1GB RAM
Console using ServiiDroid for Android, ServiiMetro and ServiiWP for Windows Phone and WebUI for iOS
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Aug 05, 2011 6:23 am

Re: Video: add year of the movie

Xmantium wrote:But I do hope you can add "Year" to movies on 0.6 build

It's not been planned and if i keep adding stuff it'll never be released... But there is always 0.6.1 and beyond
<<

KrisDech

Serviio newbie

Posts: 15

Joined: Sun Dec 02, 2012 11:16 pm

Post Tue Dec 04, 2012 3:45 pm

Re: Video: add year of the movie

I also needed my videos (self recorded) to be sorted by year. As the feature request is quite old I am now using the following workaround. Maybe this helps other users as well:

For each *mov,*avi,*mkv file I created an AHK script that will create an XBMC nfo file like this:
  Code:
<movie>
<title>MVI_4053[nfo]</title>
<director>1 2011 06</director>
</movie>


Now I can browse my files per year/month by "reusing" the Directors category.
Example:

Video
-Directors
--1 (all years 1991,2001,2011,...)
---1 2011 01 (all movies Jan 2011)
----MVI_2344[nfo]
----MVI_2345[nfo]
----... all other movies created in jan 2011
---2 2011 02 (all movies Feb 2011)
--2 (all years 1992,2002,2012,...)
--3 (all years 1993,2003,2013,...)
...

If somebody wants to try. Below is the ahk script. You have to install autohotkey from http://www.autohotkey.com/ to run the script.

Upon start script will ask you to select a folder. Once folder is selected it will scan all files in this folder and subfolders of the selected folder. If it finds a file with extension mkv,avi,mov and there is no corresponding nfo file if will create one.

  Code:
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn  ; Recommended for catching common errors.
#SingleInstance force

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

GetFilename(filepath)
{
; filepath C:\Users\user\Documents\ahk\MVI_4053.MOV should return MVI_4053.MOV
  SplitPath, filepath, outFileName
  return outFileName
}

GetFilenameWithoutExtension(filepath)
{
; filepath C:\Users\user\Documents\ahk\MVI_4053.MOV should return MVI_4053
  SplitPath, filepath,,,,OutNameNoExt
  return OutNameNoExt
}

GetNfoFileName(filepath)
{
; filepath C:\Users\user\Documents\ahk\MVI_4053.MOV should return C:\Users\user\Documents\ahk\MVI_4053.nfo
  SplitPath, filepath , OutFileName, OutDir, OutExtension, OutNameNoExt, OutDrive
  return OutDir . "\" . OutNameNoExt . ".nfo"
}

GetTimeLabel(filepath)
{
; filepath C:\Users\user\Documents\ahk\MVI_4053.MOV should return "1 2011 06" (modification time 2011.06.24)
  FileGetTime, timeLabel , %filepath%, M
  FormatTime, year , %timeLabel%, yyyy
  FormatTime, month , %timeLabel%, MM
  index := mod(year,10)
  return index . " " . year . " " . month
}

Output(text)
{
GuiControl,, MyListBox, %text%
Gui, Show, AutoSize Center
}

GenerateNfoForFile(filepath)
{
nfoFileName := GetNfoFileName(filepath)

IfExist, %nfoFileName%
{
    Output("Skipped: " . filepath . ". nfo File already exists.")
    return
}

;Output("<movie>")
text := "<movie>`n"
FileAppend , %text%, %nfoFileName%, UTF-16

;Output("<title>MVI_4053.MOV</title>")
text := "<title>" . GetFilenameWithoutExtension(filepath) . "[nfo]</title>`n"
FileAppend , %text%, %nfoFileName%


;Output("<director>1 2011 06</director>")
text := "<director>" . GetTimeLabel(filepath) . "</director>`n"
FileAppend , %text%, %nfoFileName%

;Output("</movie>")
text := "</movie>`n"
FileAppend , %text%, %nfoFileName%

Output("Created: " . nfoFileName)
}

Gui, Add, Text,, Simple Output Window.
Gui, Add, ListBox, vMyListBox gMyListBox w640 r20
Gui, Add, Button, Default, OK

FileSelectFolder, folder2scan, , 0 , Select folder to scan for video files
if folder2scan =
{
    MsgBox, You didn't select a folder. I will exit now.
    ExitApp
}

Output("Selected folder: " . folder2scan)

Loop, %folder2scan%\*, 1, 1 
{
    if A_LoopFileAttrib contains D  ; Skip directories
      continue
    if A_LoopFileExt in mkv,avi,mov
    {
      GenerateNfoForFile(A_LoopFileLongPath)
    }
}
return

MyListBox:
return
ButtonOK:
GuiClose:
GuiEscape:
ExitApp
Last edited by KrisDech on Thu Dec 06, 2012 11:18 am, edited 1 time in total.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Dec 04, 2012 4:01 pm

Re: Video: add year of the movie

KrisDech wrote:I also needed my videos (self recorded) to be sorted by year. As the feature request is quite old I am now using the following workaround. Maybe this helps other users as well:

For each *mov,*avi,*mkv file I created an AHK script that will create an XBMC nfo file like this:
  Code:
<movie>
<title>MVI_4053[nfo]</title>
<director>1 2011 06</director>
</movie>


Now I can browse my files per year/month by "reusing" the Directors category.
Example:

Video
-Directors
--1 (all years 1991,2001,2011,...)
---1 2011 01 (all movies Jan 2011)
----MVI_2344[nfo]
----MVI_2345[nfo]
----... all other movies created in jan 2011
---2 2011 02 (all movies Feb 2011)
--2 (all years 1992,2002,2012,...)
--3 (all years 1993,2003,2013,...)
...

If somebody wants to try. Below is the ahk script. You have to install autohotkey from http://www.autohotkey.com/ to run the script.

Upon start script will ask you to select a folder. Once folder is selected it will scan all files in this folder and subfolders of the selected folder. If it finds a file with extension mkv,avi,mov and there is no corresponding nfo file if will create one.




This is sounds great, my wife has been wanting this for a while. How does this affect the other Metadata that is downloaded from the net?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

KrisDech

Serviio newbie

Posts: 15

Joined: Sun Dec 02, 2012 11:16 pm

Post Tue Dec 04, 2012 4:10 pm

Re: Video: add year of the movie

Yes my wife is the reason why I came up with this workaround too :-)
However I am not using metadata from the internet. If your metadate is stored as nfo files it will work out of the box. Existing nfo files will not be changed. So you will still not find them in the directors category.
However if you are using any other kind of metadata retrieval you are stuck because you have to select:
Metadata
- Descriptive metadata
-- XBMC .nfo files
in Serviio console and I assume you can't have two different metadata providers :|
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Tue Dec 04, 2012 5:21 pm

Re: Video: add year of the movie

When I get home I will try this with online metadata enabled and see what happens. Either way, I think that this idea and script would ba a good addition to the Wiki.
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Dec 04, 2012 5:37 pm

Re: Video: add year of the movie

YOu can only have 1 extractor at a time. So either all XBMC or all Online.
<<

KrisDech

Serviio newbie

Posts: 15

Joined: Sun Dec 02, 2012 11:16 pm

Post Tue Dec 04, 2012 8:06 pm

Re: Video: add year of the movie

zip wrote:YOu can only have 1 extractor at a time. So either all XBMC or all Online.


Thanks zip. That is also what I thought.

If you want to create nfo Files for existing movies using information from IMDB this tool might be helpful: http://mediacompanion.codeplex.com/ I am not using it. Just found it mentioned in the XBMC forums.
<<

matmat07

Serviio newbie

Posts: 11

Joined: Sat Dec 01, 2012 1:44 am

Post Sun Dec 09, 2012 7:35 pm

Re: Video: add year of the movie

I wish there was a +1 system, but since there isn't i'll just say i'd like to have this too
Next

Return to Feature requests

Who is online

Users browsing this forum: Google [Bot] and 23 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.