fix: 🐛 editorconfig lint fixes

Signed-off-by: Eric Nemchik <eric@nemchik.com>
pull/1410/head
Eric Nemchik 1 month ago
parent d8b850e7c2
commit 244a787106
No known key found for this signature in database

@ -16,7 +16,7 @@ You will need to have "Allow Remote Connections" enabled if you are not connecti
If you do not have access to the WebUI, and are instead doing this by editing Deluge's `core.conf`, you will need to change "allow_remote" to true.
Restart Deluge for the changes to take effect.
Restart Deluge for the changes to take effect.
---

@ -24,13 +24,13 @@ POSTPROCESS_SKIP=95
# Check if the script is called from NZBGet 13.0 or later
if not 'NZBOP_SCRIPTDIR' in os.environ:
print('*** NZBGet post-processing script ***')
print('This script is supposed to be called from NZBGet (13.0 or later).')
sys.exit(POSTPROCESS_ERROR)
print('*** NZBGet post-processing script ***')
print('This script is supposed to be called from NZBGet (13.0 or later).')
sys.exit(POSTPROCESS_ERROR)
if not 'NZBNP_NZBNAME' in os.environ:
print('[WARN] Filename not found in environment')
sys.exit(POSTPROCESS_ERROR)
print('[WARN] Filename not found in environment')
sys.exit(POSTPROCESS_ERROR)
fwp = os.environ['NZBNP_NZBNAME']
fwp = re.sub('(?i)-4P\.nzb$', '.nzb', fwp)
@ -56,6 +56,6 @@ fwp = re.sub('(?i)-WRTEAM\.nzb$', '.nzb', fwp)
fwp = re.sub('(?i)-CAPTCHA\.nzb$', '.nzb', fwp)
fwp = re.sub(r'(\-[^-.\n]*)(\-.{4})?\.nzb$', r'\1.nzb', fwp)
if fwp:
print('[NZB] NZBNAME=', fwp, sep='')
print('[NZB] NZBNAME=', fwp, sep='')
sys.exit(POSTPROCESS_SUCCESS)

@ -75,13 +75,13 @@ def do_check():
if os.environ['NZBPP_HEALTH'] < 1000:
print("[ERROR] Download health is compromised and Par-check/repair disabled or no .par2 files found. " \
"Setting status \"failed\".")
"Setting status \"failed\".")
print("[ERROR] Please check your Par-check/repair settings for future downloads.")
status = 1
else:
print("[ERROR] Par-check/repair disabled or no .par2 files found, and Unpack not required. Health is " \
"ok so handle as though download successful.")
"ok so handle as though download successful.")
print("[WARNING] Please check your Par-check/repair settings for future downloads.")
# Check if destination directory exists (important for reprocessing of history items)
@ -182,4 +182,4 @@ else:
print(("[INFO] Finished processing \"%s\", moved %d files" % (directory, moved_files)))
sys.exit(NZBGET_POSTPROCESS_SUCCESS)
sys.exit(NZBGET_POSTPROCESS_SUCCESS)

@ -35,13 +35,13 @@ except ImportError:
patterns = (
re.compile(r'^(?P<prefix>.*\[PRiVATE\]-\[WtFnZb\]-)'
r'\[(?P<total>\d+)\]-\[(?P<segment>\d+)\/(?P<filename>.{3,}?)\]'
r'\s+-\s+""\s+yEnc\s+',
re.MULTILINE | re.UNICODE),
r'\[(?P<total>\d+)\]-\[(?P<segment>\d+)\/(?P<filename>.{3,}?)\]'
r'\s+-\s+""\s+yEnc\s+',
re.MULTILINE | re.UNICODE),
re.compile(r'^(?P<prefix>.*\[PRiVATE\]-\[WtFnZb\]-)'
r'\[(?P<filename>.{3,}?)\]-\[(?P<segment>\d+)/(?P<total>\d+)\]'
r'\s+-\s+""\s+yEnc\s+',
re.MULTILINE | re.UNICODE))
r'\[(?P<filename>.{3,}?)\]-\[(?P<segment>\d+)/(?P<total>\d+)\]'
r'\s+-\s+""\s+yEnc\s+',
re.MULTILINE | re.UNICODE))
nzb_dir = os.getenv('NZBNP_DIRECTORY')
nzb_filename = os.getenv('NZBNP_FILENAME')
@ -54,7 +54,7 @@ if nzb_dir is None or nzb_filename is None or nzb_name is None:
if nzb_file_naming is not None and nzb_file_naming.lower() != 'nzb':
print(u'[ERROR] NZBGet setting FileNaming (under Download Queue) '
u'must be set to "Nzb" for this extension to work correctly, exiting.')
u'must be set to "Nzb" for this extension to work correctly, exiting.')
sys.exit(POSTPROCESS_ERROR)
if not os.path.exists(nzb_dir):

@ -37,4 +37,4 @@ for path, currentDirectory, files in os.walk(directory):
os.rename (os.path.join(path,file),os.path.join(path,dst) )
print('Result: ',file," renamed to ",dst)
sys.exit(POSTPROCESS_SUCCESS)
sys.exit(POSTPROCESS_SUCCESS)

@ -63,7 +63,7 @@ print(fwp)
print()
print()
print()
print()
print()
print()
# 0 means OK
sys.exit(0)

@ -14,10 +14,10 @@
Install Instructions:
1. Copy script to sabnzbd's script folder
1. run: `sudo chmod +x Clean.py`
1. in SABnzbd go to `Settings` => `Switches`
1. Change Pre-queue user script and select: `Clean.py`
1. Copy script to sabnzbd's script folder
1. run: `sudo chmod +x Clean.py`
1. in SABnzbd go to `Settings` => `Switches`
1. Change Pre-queue user script and select: `Clean.py`
![!Enable Clean.py](/Downloaders/SABnzbd/images/sabnzbd-switches-queue-clean.png)
@ -38,10 +38,10 @@
Install Instructions:
1. Copy script to sabnzbd's script folder
1. run: `sudo chmod +x replace_for.py`
1. in SABnzbd go to `Settings` => `Categories`
1. Change script for required categories and select: `replace_for.py`
1. Copy script to sabnzbd's script folder
1. run: `sudo chmod +x replace_for.py`
1. in SABnzbd go to `Settings` => `Categories`
1. Change script for required categories and select: `replace_for.py`
![!Enable replace_for.py](/Downloaders/SABnzbd/images/sabnzbd-categories-replace_for.png)

@ -35,7 +35,7 @@ for src in files:
print()
print()
print()
print()
print()
# 0 means OK
sys.exit(0)

@ -36,15 +36,15 @@ Then Continue to [How to setup for](/Hardlinks/How-to-setup-for/) your installat
This means:
- You can delete any "copy" w/o impacting the others.
- You can delete any "copy" w/o impacting the others.
Your download client can remove it's "copy" w/o impacting the library "copy". The library "copy" can be removed by Plex or Sonarr/Radarr or yourself w/o impacting the download client "copy".
Your download client can remove it's "copy" w/o impacting the library "copy". The library "copy" can be removed by Plex or Sonarr/Radarr or yourself w/o impacting the download client "copy".
- Space is only regained when all "copies" are deleted.
- Space is only regained when all "copies" are deleted.
- Modifying the file will impact all "copies".
- Modifying the file will impact all "copies".
For example, modifying the id3 tags of a .mp3 download after import would modify the download client "copy", resulting in breaking the torrent.
For example, modifying the id3 tags of a .mp3 download after import would modify the download client "copy", resulting in breaking the torrent.
[More info from Wikipedia, the free encyclopedia](https://en.wikipedia.org/wiki/Hard_link){:target="_blank" rel="noopener noreferrer"}

@ -18,15 +18,15 @@ storage
│ │ ├── books
│ │ └── tv
│ └── usenet
├── movies
├── music
├── books
└── tv
│ ├── movies
│ ├── music
│ ├── books
│ └── tv
└── medialibrary
├── movies
├── music
├── books
└── tv
├── movies
├── music
├── books
└── tv
```
## Changes to the .env

@ -282,11 +282,11 @@ Pullio allows you to automatically update your containers. And send you a notifi
First you need to download Pullio
```bash
sudo curl -fsSL "https://raw.githubusercontent.com/hotio/pullio/master/pullio.sh" -o /usr/local/bin/pullio
sudo curl -fsSL "https://raw.githubusercontent.com/hotio/pullio/master/pullio.sh" -o /usr/local/bin/pullio
```
```bash
sudo chmod +x /usr/local/bin/pullio
sudo chmod +x /usr/local/bin/pullio
```
For Pullio to work, you will need to create in your Task Scheduler a "Scheduled Task" that runs for example at 4am at night with root privileges.

@ -2,35 +2,38 @@
<Client name="Chromecast">
<!-- Author: xtrap225 -->
<TranscodeTargets>
<VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="aac,mp3" context="streaming" />
<VideoProfile protocol="http" container="mkv" codec="h264" audioCodec="aac,mp3"
context="streaming" />
<MusicProfile container="mkv" codec="opus" />
<PhotoProfile container="jpeg" />
<SubtitleProfile container="ass" codec="ass" />
</TranscodeTargets>
<DirectPlayProfiles>
<VideoProfile container="mp4" codec="Hevc,h265,mpeg1video,mpeg2video,h264,mpeg4" audioCodec="aac,mp3,mp2"/>
<VideoProfile container="mkv" codec="vp9,Hevc,h265,mpeg1video,mpeg2video,h264,mpeg4" audioCodec="aac,mp3,mp2,pcm,flac,alac" subtitleCodec="srt,ass"/>
<VideoProfile container="mp4" codec="Hevc,h265,mpeg1video,mpeg2video,h264,mpeg4"
audioCodec="aac,mp3,mp2" />
<VideoProfile container="mkv" codec="vp9,Hevc,h265,mpeg1video,mpeg2video,h264,mpeg4"
audioCodec="aac,mp3,mp2,pcm,flac,alac" subtitleCodec="srt,ass" />
<VideoProfile protocol="hls" container="mpegts" codec="h264" audioCodec="aac" />
<MusicProfile container="mp3" codec="mp2,mp3"/>
<MusicProfile container="mp4" codec="aac"/>
<MusicProfile container="flac" codec="flac"/>
<MusicProfile container="wav" codec="pcm"/>
<PhotoProfile container="jpeg,png,gif"/>
<MusicProfile container="mp3" codec="mp2,mp3" />
<MusicProfile container="mp4" codec="aac" />
<MusicProfile container="flac" codec="flac" />
<MusicProfile container="wav" codec="pcm" />
<PhotoProfile container="jpeg,png,gif" />
</DirectPlayProfiles>
<CodecProfiles>
<CodecProfiles>
<VideoCodec name="h265,Hevc,vp9">
<Limitations>
<UpperBound name="video.width" value="3840"/>
<UpperBound name="video.height" value="2176"/>
<UpperBound name="video.bitrate" value="75000"/>
<UpperBound name="video.width" value="3840" />
<UpperBound name="video.height" value="2176" />
<UpperBound name="video.bitrate" value="75000" />
</Limitations>
</VideoCodec>
<VideoCodec name="h264,mpeg4">
<Limitations>
<UpperBound name="video.width" value="3840"/>
<UpperBound name="video.height" value="2176"/>
<UpperBound name="video.bitrate" value="75000"/>
<UpperBound name="video.bitDepth" value="10" />
<UpperBound name="video.width" value="3840" />
<UpperBound name="video.height" value="2176" />
<UpperBound name="video.bitrate" value="75000" />
<UpperBound name="video.bitDepth" value="10" />
<UpperBound name="video.level" value="42" />
</Limitations>
</VideoCodec>

@ -726,7 +726,7 @@ We've made 3 guides related to this.
??? example "JSON - [Click to show/hide]"
```json
[[% filter indent(width=4) %]][[% include 'json/radarr/cf/remaster.json' %]][[% endfilter %]]
[[% filter indent(width=4) %]][[% include 'json/radarr/cf/remaster.json' %]][[% endfilter %]]
```
<sub><sup>[TOP](#index)</sup></sub>

@ -727,7 +727,7 @@ We've made 3 guides related to this.
??? example "JSON - [Click to show/hide]"
```json
[[% filter indent(width=4) %]][[% include 'json/sonarr/cf/remaster.json' %]][[% endfilter %]]
[[% filter indent(width=4) %]][[% include 'json/sonarr/cf/remaster.json' %]][[% endfilter %]]
```
<sub><sup>[TOP](#index)</sup></sub>

@ -8,13 +8,13 @@ data
├── usenet
│ ├── incomplete
│ └── complete
├── books
├── movies
├── music
└── tv
│ ├── books
│ ├── movies
│ ├── music
│ └── tv
└── media
├── books
├── movies
├── music
└── tv
├── books
├── movies
├── music
└── tv
```

@ -1,8 +1,8 @@
```none
data
└── media
├── movies
├── music
├── books
└── tv
├── movies
├── music
├── books
└── tv
```

@ -1,8 +1,8 @@
```none
data
└── torrents
├── books
├── movies
├── music
└── tv
├── books
├── movies
├── music
└── tv
```

@ -3,8 +3,8 @@ data
└── usenet
├── incomplete
└── complete
├── books
├── movies
├── music
└── tv
├── books
├── movies
├── music
└── tv
```

@ -21,4 +21,4 @@
REPACKS and PROPERs are v2 of Qualities and thus rank above a non-repack of the same quality.
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use the [Repack/Proper Custom Format](/Radarr/Radarr-collection-of-custom-formats/#repackproper){:target="_blank" rel="noopener noreferrer"}
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use the [Repack/Proper Custom Format](/Radarr/Radarr-collection-of-custom-formats/#repackproper){:target="_blank" rel="noopener noreferrer"}

@ -23,4 +23,4 @@
REPACKS and PROPERs are v2 of Qualities and thus rank above a non-repack of the same quality.
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use a preferred word regex of `/\b(repack|proper)\b/i`
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use a preferred word regex of `/\b(repack|proper)\b/i`

@ -22,4 +22,4 @@
REPACKS and PROPERs are v2 of Qualities and thus rank above a non-repack of the same quality.
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use the [Repack/Proper Custom Format](/Sonarr/sonarr-collection-of-custom-formats/#repackproper){:target="_blank" rel="noopener noreferrer"}
`Settings` => `Media Management` => `File Management` => `Proper & Repacks` Change to `Do Not Prefer` and use the [Repack/Proper Custom Format](/Sonarr/sonarr-collection-of-custom-formats/#repackproper){:target="_blank" rel="noopener noreferrer"}

Loading…
Cancel
Save