Page 1 of 1
Forum

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!



I added RenamyMyTvS...
 
Share:
Notifications
Clear all

[Solved] I added RenamyMyTvSeries2 to Fedora COPR

59 Posts
4 Users
23 Reactions
8,317 Views
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

The first one you must have posted for other none arch based distros cause when I do a package search using pacseek in konsole only the qt and gtk ones come up. That said no worries here I fixed things on my end and all looks good on 2.3.9. 



   
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

OK just had a chance to run 2.3.9 for the first time and when I added Alien Earth S01E01 and Invasion S03E01 to RMTV and renamed them I ended up with a backup file again and two videos for each episode correctly named but one having the word Original in the title. I hove gone through the settings several times and this time I'm not seeing the option for backups.

FAILED:  /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth S01E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.mkv -> /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth (2025) S01E01 Neverland.mkv (Failed to move to TrashCan)
SKIPPED: /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth S01E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.mkv.bak -> /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth (2025) S01E01 Neverland.mkv.bak (File not renamed - Renaming original mediafile failed.)
SKIPPED: /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth S01E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.original.mkv -> /mnt/My Files/Television/Last Night's/New Folder (1)/Alien Earth (2025) S01E01 Neverland.original.mkv (File not renamed - Renaming original mediafile failed.)
FAILED:  /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion 2021 S03E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.mkv -> /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion (2021) S03E01 The Ones We Leave Behind.mkv (Failed to move to TrashCan)
SKIPPED: /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion 2021 S03E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.mkv.bak -> /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion (2021) S03E01 The Ones We Leave Behind.mkv.bak (File not renamed - Renaming original mediafile failed.)
SKIPPED: /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion 2021 S03E01 1080p 10bit WEBRip 6CH x265 HEVC-PSA.original.mkv -> /mnt/My Files/Television/Last Night's/New Folder (1)/Invasion (2021) S03E01 The Ones We Leave Behind.original.mkv (File not renamed - Renaming original mediafile failed.)

https://vimeo.com/manage/videos/1112658088


This post was modified 2 months ago by CCCP64

   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

@cccp64 Sorry for the late reply (I'm on vacation at the moment). I'll go try Garuda Linux when I get back home - thank you for the tip! 😊



   
CCCP64 reacted
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

@cccp64 I'll have to dig into this when I get back 😊 (I better bookmark this, in the hope that I won't forget)



   
CCCP64 reacted
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

Posted by: @hans

@cccp64 Sorry for the late reply (I'm on vacation at the moment). I'll go try Garuda Linux when I get back home - thank you for the tip! 😊

 

No worries I can just delete the extra files for now, ENJOY your vacation.

 



   
Hans reacted
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

Good Morning / Day for the recent post looks like you're back. Just thought I'd drop a reminder about my post.  Thanks

https://www.tweaking4all.com/forum/linux-software/i-added-renamymytvseries2-to-fedora-copr/paged/3/#post-6024



   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

Just arrived home about an hour ago - did reply during my vacation 😉 
Will try to look at it tomorrow. 😊 



   
CCCP64 reacted
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

@cccp64 Finally getting to this one 😉 

Note: I presume this used to work with other RMTV versions.

So the log already suggests that renaming and moving the file to the Trashcan failed (as you already knew).

A quick view at the sources (note that none of this has been modified in the last 5 years):

 

Renaming files is using whatever system function is defined per platform and how it comes with Lazarus Pascal.
So I think under Linux it uses the clib "rename" function (at least, this is what the Lazarus code suggests).
Not much I can do here without going overboard.

 

Moving things to the Trashcan is my own concoction, and this is what it does for Linux.

- RMTV tries to use "~/.local/share/Trash/" as the Trashcan location base directory.
- if that path doesn't exists it will try "~/Desktop/Trash/", "~/trash/", ~/Trash/", "~/.trash/", "~/.Trash/"

(all based on me not being a Linux expert, from whatever info I pulled from the Internet)

If "~/.local/share/Trash/" is used:

- "~/.local/share/Trash/info/" will be used for an info file (INI formatted), where the directory is created if needed and the info file gets the orignal filename plus the ".trashinfo" extension.

- "~/.local/share/Trash/files/" will be used to store the original file, where the directory is created if needed 

For the other trashcan paths these directories will not be created.

Next the original will be copied to the trashcan location and RMTV verifies if the copied file exists. If so, the original will be deleted.
* This since moving files may not work across network shares (not sure if that is 100% true or not, or if this may be a Lazarus limitation or not - its been a long time ago that I created the code for this and RMTV uses it ever since unmodified).

You are probably more experienced with access rights than I am, but could it be that your files may have different access rights than your usual files? I'm sure you already checked this.
Could it be that the Trashcan doesn't exist or is full? (just a random additional guess, but doubt it though in your case).

As I cannot reproduce this issue on my Linux Virtual Machine, I'm a little bit at a loss why its not working on your setup. Granted: I never use this option and so far it worked for those who do. Let me know what your findings are with the access rights.



   
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

@hans I never move things to the trash, I make absolutely that I want the item(s) deleted before getting rid of them.

That said the only thing I do under Dolphin trash setting is reduce the amount of space allowed for the trash. Now

that said any way to make an option to either send the original to the trash or to out and out delete after renaming,

or simply renaming the original and it's metadata without creating a secondary file?

 

On a secondary note I changed "AddMetaBackupOriginal=0" from 0 to 1 to see what effect that would have. I stopped

getting the .bak files, but still got the original so I changed that back to 0. Odd thing is even back to 0 I'm still no longer 

getting the .bak files. 



   
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

Posted by: @hans

You are probably more experienced with access rights than I am

 

LOL you'd be wrong. Even when I was running Windows permissions always made my head hurt.



   
Hans reacted
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

🤣 Yeah - same here ... even with my NAS I every now and then run into serious headaches hahah.



   
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

Posted by: @cccp64

Now that said any way to make an option to either send the original to the trash or to out and out delete after renaming,

or simply renaming the original and it's metadata without creating a secondary file?

Any thoughts on that?



   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

Posted by: @cccp64

Posted by: @cccp64

Now that said any way to make an option to either send the original to the trash or to out and out delete after renaming,

or simply renaming the original and it's metadata without creating a secondary file?

Any thoughts on that?

Not sure 100% what you mean with this.
I have RMTV make that secondary file to make sure a file doesn't get lost by accident.

I'd also check the access rights of the original file, and maybe see what user is using RMTV.
I've had it before that a file somehow got the wrong access right preventing RMTV from doing what it is supposed to be doing.

 



   
ReplyQuote
(@cccp64)
Reputable Member
Joined: 7 years ago
Posts: 237
 

Posted by: @hans

Posted by: @cccp64

Posted by: @cccp64

Now that said any way to make an option to either send the original to the trash or to out and out delete after renaming,

or simply renaming the original and it's metadata without creating a secondary file?

Any thoughts on that?

Not sure 100% what you mean with this.
I have RMTV make that secondary file to make sure a file doesn't get lost by accident.

I'd also check the access rights of the original file, and maybe see what user is using RMTV.
I've had it before that a file somehow got the wrong access right preventing RMTV from doing what it is supposed to be doing.

 

 

Both my Files and Backs are set to chmod -R 775 /mnt/  cause both drives are mounted under /mnt/. My Files is everything I save, and Backups is a clone of that. I do a one mirror of My Files to Backups once a day. I run chmod -R 775 /mnt/ once a day and have had no issues with any permissions for files. Up til this latest version of RMTV all was good.

 

Not sure now on the below cause I'm not finding the post with that line in it to reference and jog my memory. Please link the post, or quote the entire post.

 

Thanks

 

Posted by: @hans

Not sure 100% what you mean with this.
I have RMTV make that secondary file to make sure a file doesn't get lost by accident.

 


This post was modified 2 months ago by CCCP64

   
ReplyQuote
 Hans
(@hans)
Famed Member Admin
Joined: 12 years ago
Posts: 3009
 

Jogging the noggin ... haha that's what my uncle would say 😉 
(same here with the sheer amount of question, where I too forget where was what haha 😉)

I was referring to you "any thoughts" question a few posts up (link).
Wasn't sure what you were trying to say with "make an option to either send the original to the trash or to out and out delete after renaming".
RMTV already has the option to handle files differently, not sure if you'd like any of those (dropdown under "Move action:"):

Maybe you could try "Move original" with a dummy test file? (I never use any move option myself)

The odd thing is that when it comes to file handling nothing has changed in the last 5 years. Assuming nothing changed in my dev tools of course (Lazarus Pascal), but I checked their forum and didn't see anyone complaining about bugs related to file handling.

I see you've encountered similar access rights nightmares haha .. ran chmod scripts for the longest time as well.
If I recall correctly, it has to do with the user (and the rights of that user) under which a tools runs (eg. RMTV, download manager, backup tool, scripts etc). But for me as well, access rights have caused headaches over here as well 😉 - even when they seem impossible to go wrong, sometimes they still go wrong (by lack of my knowledge).



   
ReplyQuote
Page 3 / 4
Share: