caronc / nzbget-tidyit Goto Github PK
View Code? Open in Web Editor NEWWill clean up your video media library by eliminating directories that no longer contain the video file they once hosted
License: GNU Lesser General Public License v3.0
Will clean up your video media library by eliminating directories that no longer contain the video file they once hosted
License: GNU Lesser General Public License v3.0
So I'm loving the script but noticed that there's no way to leave empty directories, they get removed.
This makes SickRage upset, so I'm wondering if there's a way or mod to do this?
pynzbget can be found here.
The latest version allows us to use custom commands.
Add Custom Action to allow one to tidy their library manually whenever they want.
Forced subtitles (ie: en.forced.srt | eng.forced.srt) are flagged to be removed even when put in the safe extensions list as any of the following:
.en.forced.srt
*.en.forced.srt
.??.forced.srt
.eng.forced.srt
*.eng.forced.srt
.???.forced.srt
Hi
So I'm no computer guru, but I'm trying to install this in a NZBGet container that doesn't have pip installed:
https://hub.docker.com/r/linuxserver/nzbget/
I copied the .py file to my scripts folder and restarted nzbget; now the item does show up in the list, but according to the install instructions I also NEED to run pip install -r requirements.txt
and w/out pip installed how can I do this?
Any help appreciated! :)
๐ชฒ Describe the bug
Trying to get this script to work on a containerized install of PG Blitz. NZBget can see the script but I get the error below. I've tried updating the pip and python, but to no avail.
๐ก Screenshots and Logs
Executing script TidyIt.py with command DoTidy
Traceback (most recent call last):
File "/config/scripts/TidyIt.py", line 279, in <module>
from nzbget import SKIP_DIRECTORIES
File "/usr/lib/python3.8/site-packages/nzbget/__init__.py", line 23, in <module>
from .ScriptBase import *
File "/usr/lib/python3.8/site-packages/nzbget/ScriptBase.py", line 135, in <module>
import six
ModuleNotFoundError: No module named 'six'
Script TidyIt.py with command DoTidy failed (terminated with unknown status)
๐ป Your System Details:
๐ฎ Additional context
Add any other context about the problem here.
This Reddit post indirectly brought to my attention another notification service that this script doesn't already support.
Thus add support for Rocket.Chat
โ Question
I ran the script once on my TV share, found issues (some due to what I think were file names that were too long), and then after cleaning up some of the errors, not all, this is now what I get when I re-run it.
PS P:\usenet\scripts> python TidyIt.py /media/tv
2021-12-17 14:18:47,599 - 13952 - INFO - Scanning /media/tv
PS P:\usenet\scripts>
I am using "New-PSDrive -Name P -PSProvider FileSystem -Root \homeserver\data" to create a static drive of P: as well.
Thanks!
John
the last update removed the nzbget directory and breaks the script.
this is the error I get:
Traceback (most recent call last):
File "TidyIt.py", line 279, in
from nzbget import SKIP_DIRECTORIES
ImportError: No module named nzbget
I some times have files such as the following and TidyIt blocks cleaning the directories because of them.
I can add them to the -t option, but the safe-guarded files vary and I have to hunt them down.
I'm not sure why they are considered safe-guarded
Thanks
Samples below:
/de8c4fc4c9d9b3caacde7b72be637e.a4 (safe-guarded) 5b7359632b5c9890c664196eb.e7bf (safe-guarded) MQ3TKZRTMU2TCNZQG42GEN3CGZDEYZQ (safe-guarded)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.