Video: add year of the movie
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.
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?
Xmantium wrote:Yes by Movies only please
TV series is fine just the way it is.![]()
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.
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.
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
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
Xmantium wrote:But I do hope you can add "Year" to movies on 0.6 build
#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
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:
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.
zip wrote:YOu can only have 1 extractor at a time. So either all XBMC or all Online.
Users browsing this forum: No registered users and 39 guests