Search found 18 matches

by Droyellis
November 11th, 2023, 5:25 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

thank you. this code will download the latest *win46-bin.zip, ignoring version number: import os import requests from fnmatch import fnmatch from zipfile import ZipFile import glob import shutil os.system("taskkill /f /im SABnzbd.exe") def download_file(url, local_path, headers=None): with...
by Droyellis
November 11th, 2023, 4:51 am
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

I'd like to somehow match it to *win64-bin.zip

I'm not sure how to do that though
by Droyellis
November 10th, 2023, 11:32 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

ok this is my code so far:

Code: Select all

old code removed
it is working by way of targeting the 5th asset in the list of releases, if that changes for some reason its gunna break and id have to fix it.
by Droyellis
November 10th, 2023, 7:20 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

I liked the first python code that shows the releases, how would I make python download newer releases?
by Droyellis
November 10th, 2023, 3:42 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

yes i would much prefer python, id use powershell if needed tho.

that chatgpt was pretty cool. much appreciate the effort. your first code seemed pretty good at displaying latest versions, its the downloading latest/future releases is what im after
by Droyellis
November 10th, 2023, 2:34 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

https://github.com/sabnzbd/sabnzbd/releases/download/4.1.0/SABnzbd-4.1.0-win64-bin.zip Have a good look at this link, and think about what it's going to download, compare it with previous versions if you like... here's the exact same link for version 2.0.0 https://github.com/sabnzbd/sabnzbd/releases...
by Droyellis
November 10th, 2023, 2:39 am
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

A new WebLink with the number 4.2.0 in it, my script would still download version 4.1.0
by Droyellis
November 10th, 2023, 1:01 am
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

No I want a link in the script to always download the latest version. So that when 4.2 is released my script will update
by Droyellis
November 9th, 2023, 8:48 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

and yet the new web link still points to version 4.1.0, we're still at square one. I asked for help, you didn't have to... "help" I understand that script will always parse the latest results, I'd still need code to process newer links with newer version numbers. I'll start figuring out ho...
by Droyellis
November 9th, 2023, 6:22 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

thanks heaps for that, its a good start. how would i automate the download of the latest win64-bin.zip regardless of listed version number?
by Droyellis
November 9th, 2023, 5:06 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

most linux distros would have a repo or an app image, so kinda pointless. would building self/auto update into sabnzbd be a possible thing? would running it from source be a better option? would i be able to script / automate the update process???
by Droyellis
November 9th, 2023, 4:18 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

Re: please help creating an update script

this is the link i was using: https://github.com/sabnzbd/sabnzbd/releases/download/4.1.0/SABnzbd-4.1.0-win64-bin.zip so your first link takes me to the GitHub page where I'd need to somehow have the right zip file selected, and that zip file will always have a newer filename with the version number....
by Droyellis
November 8th, 2023, 6:38 pm
Forum: General Help
Topic: please help creating an update script
Replies: 24
Views: 12035

please help creating an update script

hi all I'm creating a python script on windows that will download the portable zip version and extract it to a neutral folder name (without version numbers), in place of the folder I have it running from. I pretty much had everything working the way I wanted it until I realized the web link will alw...
by Droyellis
April 10th, 2022, 6:31 pm
Forum: Bug Reports
Topic: Folder Issue since upgrading to 3.4.1
Replies: 38
Views: 71134

Re: Folder Issue since upgrading to 3.4.1

It works differently than you expected. We will work on a solution because we changed how things worked: https://github.com/sabnzbd/sabnzbd/issues/2143 thank you, in the meantime is there a way to make the movie sorter give me a nofolder/jobname.mkv output? the ui suggests that it should be working...
by Droyellis
April 6th, 2022, 6:08 pm
Forum: Bug Reports
Topic: Folder Issue since upgrading to 3.4.1
Replies: 38
Views: 71134

Re: Folder Issue since upgrading to 3.4.1

safihre wrote: March 22nd, 2022, 7:36 am It's working, at least as far as I know.
Why not update?
enable the movie sorter with your category selected with %dn.%ext as your sort string, download a test file with the category and enjoy the obfuscated file names.

it is blatantly not working.