Renaming Recordings on the Wiz

Moderators: Gully, peteru

Post Reply
BobS
Apprentice
Posts: 24
Joined: Tue Jul 23, 2019 16:43
Location: The Hills, Sydney

Renaming Recordings on the Wiz

Post by BobS » Wed Jan 17, 2024 16:05

I have a Wiz V2 and using Windows 11

I have many recordings that are all for the same Program but different Series/Episode.
I have the Series# / Episode# on my PC and I'd like to modify the Recording name by adding a suffix eg _S21E05

I know I can do it manually via OpenWebIf, but I'd like to do it automatically via my program.
Is there a Command line utility or Nuget Package that I could use ?
I can see the Movie folder in Windows Explorer (via the Network) but each Recording is made up of several files, I'm not sure I should be renaming them this way ??

Thanks,
BobS
BobS
Wiz V2
Samsung Q95 TV
Harmony 600
Windows 11 Pro
Synology NAS DS220+
FingBox

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Renaming Recordings on the Wiz

Post by prl » Thu Jan 18, 2024 12:18

The displayed name for recordings isn't the file name, it's the second line in the recording's .meta file.

You need to change that line to change the recording name.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

BobS
Apprentice
Posts: 24
Joined: Tue Jul 23, 2019 16:43
Location: The Hills, Sydney

Re: Renaming Recordings on the Wiz

Post by BobS » Fri Jan 19, 2024 06:06

Thanks Peter,
Exactly what I was after, I assume I can edit this line without causing any problems
Bob S
BobS
Wiz V2
Samsung Q95 TV
Harmony 600
Windows 11 Pro
Synology NAS DS220+
FingBox

prl
Wizard God
Posts: 32709
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: Renaming Recordings on the Wiz

Post by prl » Fri Jan 19, 2024 08:43

BobS wrote:
Fri Jan 19, 2024 06:06
Exactly what I was after, I assume I can edit this line without causing any problems

The file has Unix style line endings - a single <LF> to terminate a line, not DOS/Windows line endings (<CR><LF>). If you use an editor that preserves the original line endings, then it should be fine. If the line endings are converted to Windows style by the editor, it might cause problems with display of the title (but most likely not).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

raymondjpg
Guru
Posts: 968
Joined: Sun Jul 25, 2010 09:18

Re: Renaming Recordings on the Wiz

Post by raymondjpg » Fri Jan 19, 2024 09:48

prl wrote:
Fri Jan 19, 2024 08:43
BobS wrote:
Fri Jan 19, 2024 06:06
Exactly what I was after, I assume I can edit this line without causing any problems

The file has Unix style line endings - a single <LF> to terminate a line, not DOS/Windows line endings (<CR><LF>). If you use an editor that preserves the original line endings, then it should be fine. If the line endings are converted to Windows style by the editor, it might cause problems with display of the title (but most likely not).

I think Notepad++ should do the job. Windows Notepad not.
Beyonwiz T2, Beyonwiz U4, IceBox BYO with Hauppauge WinTV-dualHD (x2), Hauppauge WinTV-quadHD

User avatar
peteru
Uber Wizard
Posts: 9741
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: Renaming Recordings on the Wiz

Post by peteru » Sun Jan 28, 2024 20:25

As an alternative, the web interface API provides an endpoint for renaming recordings.

See: source code

You need to pass two arguments:
  • sRef is the service reference of the recording
  • newname is the new name.

"Beauty lies in the hands of the beer holder."
Blog.

Post Reply

Return to “General Topics V2”