LiveStreamDVR icon indicating copy to clipboard operation
LiveStreamDVR copied to clipboard

(Feature request) rename old vods

Open Serph91P opened this issue 3 years ago • 70 comments

Love the naming scheme implemented, like how easy it is. Where you can go like login}{season}{episode}. And even clickable presets and stuff. Great work. Only thing I wish there was you could rename all the old vods the same fashion after you changed it. Also would help I hope with importing in Plex. So at least the seasons are getting registered correctly because Plex cannot read the nfo files generated for kodi or at least not anymore. Because at it is right now Plex goes like. Season is 2022 and so on see: https://support.plex.tv/articles/200265256-naming-home-series-media/ .Just something for you to think about.

Serph91P avatar Aug 31 '22 16:08 Serph91P

Oh forgot to ask what do you mean by `Vod filename. This will break automatic segment finding if changed from default.

Default: {login}{date}{id}`?

Won't it just not be able to ad them to the nfo or something or won't it be able to find them at all.

Serph91P avatar Aug 31 '22 16:08 Serph91P

What would be even better would be to implement the metadata into the files dunno if that's possible. See Plex wiki:

Personal Media Shows: The Personal Media Shows agent is used to identify media files that haven’t been broadcast and so don’t appear in online databases. Shows scanned using this agent will be presented like a TV series. This is useful if you have a set of videos from a single event, like a wedding. If Local Media Assets is enabled for the agent, any embedded metadata in the files will be used for that show.

Serph91P avatar Aug 31 '22 16:08 Serph91P

plex is kind of a pain. regular metadata is already written to the files, can't seem to find a season field for it though

Oh forgot to ask what do you mean by `Vod filename. This will break automatic segment finding if changed from default.

in a worst case scenario if the segment list is empty, it won't be able to find the mp4 files because of a different naming scheme. not really a problem anymore since you can edit the segment list manually in the gui

MrBrax avatar Aug 31 '22 18:08 MrBrax

plex is kind of a pain. regular metadata is already written to the files, can't seem to find a season field for it though

Oh forgot to ask what do you mean by `Vod filename. This will break automatic segment finding if changed from default.

in a worst case scenario if the segment list is empty, it won't be able to find the mp4 files because of a different naming scheme. not really a problem anymore since you can edit the segment list manually in the gui

Found this on Reddit. Plex itself doesn't really seem to want to disclose this information. So the naming scheme would need to be "name of series s01ep01" or something. https://www.reddit.com/r/PleX/comments/rt8pdk/plex_wont_read_metadata_from_my_own_mp4_files/hqrhmf7

Serph91P avatar Aug 31 '22 20:08 Serph91P

Or what also could help folder for seasons. Could to this myself but would be gorgeous if lsdvr would do it. I know it would be a bigger change with folder.

Serph91P avatar Aug 31 '22 20:08 Serph91P

https://support.plex.tv/articles/200220717-local-media-assets-tv-shows/

Serph91P avatar Aug 31 '22 20:08 Serph91P

i had ideas about having subfolders for vods, but that's probably gonna take some time. gonna need some database over the vods too

MrBrax avatar Sep 01 '22 12:09 MrBrax

ok so this feature might just break everything, but as a first start the subfolders seem to be working

MrBrax avatar Sep 01 '22 16:09 MrBrax

ok so this feature might just break everything, but as a first start the subfolders seem to be working

Wow dude just how fast are you. Sure it would break everything since there are suddenly subfolder. If you need someone for testing. I have running two instances ATM so no problem setting one to dev. Needed two because one would crash described in my other ticket. So I setup a backup.

Serph91P avatar Sep 01 '22 17:09 Serph91P

yeah well sometimes when i'm out and about i get ideas in my head :)

it should be able to find all existing files and work as normal, but that only happens if there's no database file for the channel in the config folder, so no way to manually call a refresh. if you make subfolders for them, delete the database file for the channel and restart the server it should pick them up

MrBrax avatar Sep 01 '22 17:09 MrBrax

yeah well sometimes when i'm out and about i get ideas in my head :)

it should be able to find all existing files and work as normal, but that only happens if there's no database file for the channel in the config folder, so no way to manually call a refresh. if you make subfolders for them, delete the database file for the channel and restart the server it should pick them up

What does the db file look like or where is it. Because just updated and everything is working so far. But dont see any db file of some sorts. Will try later to sort them in Folder. Also what is the naming you intended to use or make it modular like filenames?

Serph91P avatar Sep 02 '22 08:09 Serph91P

database files are stored in /data/config/vods_db/*.json

naming for vod folders is the same as the filename right now, will most likely make it the same with templates

MrBrax avatar Sep 02 '22 08:09 MrBrax

database files are stored in /data/config/vods_db/*.json

naming for vod folders is the same as the filename right now, will most likely make it the same with templates

so every stream gets his own subfolder?

Serph91P avatar Sep 02 '22 08:09 Serph91P

yes, i think that's good for organizing. can be disabled of course

MrBrax avatar Sep 02 '22 08:09 MrBrax

yes, i think that's good for organizing. can be disabled of course

got it, question wouldnt it make more sense in terms of medeia server to make season folder like put every stream of june in the folder 202206 or something? because right now you would end up with folders like 202206_1,202206_2,202206_3 and so one

Serph91P avatar Sep 02 '22 08:09 Serph91P

i don't think it would break if you did that honestly, you could just use {season} as the folder name and it would put every stream for that month in there. added the functionality on latest build

MrBrax avatar Sep 02 '22 08:09 MrBrax

i don't think it would break if you did that honestly, you could just use {season} as the folder name and it would put every stream for that month in there. added the functionality on latest build

but the season is 2022 so it would put every stream of the year in there no? image

Serph91P avatar Sep 02 '22 08:09 Serph91P

yeah you're right, i could add some more variables to use

MrBrax avatar Sep 02 '22 08:09 MrBrax

yeah you're right, i could add some more variables to use

Your making every Media Server user happy right now :)

Serph91P avatar Sep 02 '22 08:09 Serph91P

any suggestions for more fields? could be anything from the user or at the point of starting the stream

MrBrax avatar Sep 02 '22 08:09 MrBrax

any suggestions for more fields? could be anything from the user or at the point of starting the stream

more fields like another folder or more presets for the user to chose from?

Serph91P avatar Sep 02 '22 08:09 Serph91P

fields like {season} and {date} etc

i'm adding year/month/date as separate ones

MrBrax avatar Sep 02 '22 08:09 MrBrax

fields like {season} and {date} etc

i'm adding year/month/date as separate ones

I dont think from my point of view there is anything that makes sense to add.

Serph91P avatar Sep 02 '22 08:09 Serph91P

fields like {season} and {date} etc

i'm adding year/month/date as separate ones

There is something broken herem just tried season and this is what came out :D image

Serph91P avatar Sep 02 '22 09:09 Serph91P

is that in a manual stream record?

MrBrax avatar Sep 02 '22 09:09 MrBrax

is that in a manual stream record?

yeah

Serph91P avatar Sep 02 '22 09:09 Serph91P

alright, pushing changes. changing the folder names is not implemented yet, but you could just rename them yourself and use the new "rescan vods" in the streamer header. should work without leaving vods in memory now hopefully

MrBrax avatar Sep 02 '22 09:09 MrBrax

There seems to be a mismatch between what der Interface shows an what is created: image image

Serph91P avatar Sep 02 '22 14:09 Serph91P

yup typo

MrBrax avatar Sep 02 '22 14:09 MrBrax

ok that did not work. moved now everything is season specific folders. Plex no liky. Looks almost like its getting it from somwhere else. Because after that I tried just Season 03 and so on an still: image

Serph91P avatar Sep 02 '22 14:09 Serph91P