[REL] [ALL] Update Script for Script Updates ! ;)

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
draco31.fr
Posts: 191
Joined: 2005-08-11 19:27:15
Location: Toulouse (31), France

Post by draco31.fr »

You could also use a free/OpenSource DOS interpretor like 4DOS : So you may not have any problems about the OS.

A multilangage option is not an absolute necessity for me, but if I want, maybe could I use some times to make a french transcription of your script ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

draco31.fr wrote:You could also use a free/OpenSource DOS interpretor like 4DOS : So you may not have any problems about the OS.

A multilangage option is not an absolute necessity for me, but if I want, maybe could I use some times to make a french transcription of your script ;)
Sorry, but I'm not gonna download and install any kind of executables through a script, most of all when there is no necessity for this - even if it might be possible. I just don't like the idea and it is always an additional risk.

As I mentioned before, a solution should be possible with "onboard" tools and I would add W9x support for autodetection of new scripts, if there are users who really need this function and want me to do it - but yet noone did .. so why spend time on a function that noone needs ?

Believe me, it's just a question of sense, not a question of technical realization ;)

And please remember.. if there will be an auto update feature in future versions of AMC, this script will not be needed anymore.. it was just planned as a temporary solution for this (and maybe the next ?) version of AMC :)
antp
Site Admin
Posts: 9676
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Auto-update will be for next version, I just have to find some time to make it :D
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

pah :p
DawMatt

Separate picktrees for new and updated scripts?

Post by DawMatt »

Hi,

First of all, thanks for writing this script! Its working pretty well for me.

I was wondering whether the "autodetect" option might be able to have a third option added, to display separate pick trees for new and updated scripts?

Rationale: I delete certain default scripts from the default install because I don't use them. I don't use non-english scripts, and I also find that certain sites don't return useful information for the types of media I'm managing. The autoupdate script currently tells me about updates to (and the absence of) these scripts that I don't use. If they could be added to a "New Scripts" pick list it would be easier to sort out updates to scripts I care about vs those I don't.

Thanks,
Matt
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Re: Separate picktrees for new and updated scripts?

Post by bad4u »

DawMatt wrote: I was wondering whether the "autodetect" option might be able to have a third option added, to display separate pick trees for new and updated scripts?
This should be possible. I'll have a look on (and probably add) it tonight.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

New script version 1.2.0 available

Download : http://service.gmx.net/mc/7h3SeejwudztO ... TVv0WWAQgK
(temporary address, choose "GMX Media Center starten - UPDATE_SCRIPTS.ifs - Datei - download)

I changed the look of the result listing - now the results are arranged under "Latest updates" and "Additional Scripts". The user can hide what he doesn't need.

@DawMatt: I think this solution should fit your needs, too. I don't like the idea to show only updates or only new/additional scripts via script option, because once set, it would be easy to miss new - but unfortunatly hidden - scripts ..
antp
Site Admin
Posts: 9676
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks
DawMatt

Post by DawMatt »

Hi Bad4u,
bad4u wrote:@DawMatt: I think this solution should fit your needs, too. I don't like the idea to show only updates or only new/additional scripts via script option, because once set, it would be easy to miss new - but unfortunatly hidden - scripts ..
You've actually done exactly what I was looking for, and its working great! The option I requested was only to switch between this mode and the old way of doing things - obviously didn't explain myself that well.

Thanks for making this change so promptly!

Thanks,
Matt
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

New script version 1.2.1 available

I found a small bug concerning the 'Additional Scripts' listing. Under certain conditions scripts could be missing in the 'Additional Scripts' tree. The 'Updated Scripts' listing was not concerned.

Download: http://bad4u.saveitfree.com/scripts/UPDATE_SCRIPTS.ifs
antp
Site Admin
Posts: 9676
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks, I added it to my server.
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Well, your wish has not been granted. Update script doesn't work on Vista x64 RTM.

1. When run as regular user, UPDATE_CHECK.txt won't be created and script dies.
2. When run as administrator it says 'new version of UPDATE_SCRIPT available'.
2.1 If I choose to install, it says ok with no error messages, then it says 'no movie found' and then asks to abort batch process'. If I won't abort, it continues as 2.2
2.2 If I won't install 'UPDATE_SCRIPT' when asked, then window with all scripts is opened and I'm allowed to update scripts. Scripts are downloaded and saved to folder, however when I run this update script again, it says that it needs to update again and I'm offered to download same scripts again. Isn't it supposed to hide scripts for which I already have latest version?
3. UPDATE_SCRIPT doesn't work if I have 0 movies in catalogue
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Thanks for these informations. Unfortunately (or fortunately ? ;) ) I don't have Vista, so I cannot test by myself.
elman wrote:1. When run as regular user, UPDATE_CHECK.txt won't be created and script dies.
This maybe because of the Vista restrictions. Don't know anything about that rules yet.
elman wrote:2. When run as administrator it says 'new version of UPDATE_SCRIPT available'.
2.1 If I choose to install, it says ok with no error messages, then it says 'no movie found' and then asks to abort batch process'. If I won't abort, it continues as 2.2
2.2 If I won't install 'UPDATE_SCRIPT' when asked, then window with all scripts is opened and I'm allowed to update scripts. Scripts are downloaded and saved to folder, however when I run this update script again, it says that it needs to update again and I'm offered to download same scripts again. Isn't it supposed to hide scripts for which I already have latest version?
Yes, scripts that are up-to-date should be hidden. Seems that format of update_check.txt in Vista is different to XP version, so that the script's analysis fails. Or maybe cmd.exe does not work properly under Vista. Would be nice if you could send me your update_check.txt file (see private message) :)
elman wrote:3. UPDATE_SCRIPT doesn't work if I have 0 movies in catalogue
Yes. I mentioned this behaviour in my first posting: "The script does NOT modify your database, so it is not important which film is chosen when starting the script (but a film has to be selected or you will get an error message). "
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

bad4u wrote:Thanks for these informations. Unfortunately (or fortunately ? ;) ) I don't have Vista, so I cannot test by myself.
In my opinion, you are fortunate :)
bad4u wrote:
elman wrote:1. When run as regular user, UPDATE_CHECK.txt won't be created and script dies.
This maybe because of the Vista restrictions. Don't know anything about that rules yet.
Yes, I guess that's it. Normally you can't write anything to Program Files. All write attempts are redirected to VirtualStore. Only signed installers and elevated administrators/installers can write to Program Files.
bad4u wrote:
elman wrote:2. When run as administrator it says 'new version of UPDATE_SCRIPT available'.
2.1 If I choose to install, it says ok with no error messages, then it says 'no movie found' and then asks to abort batch process'. If I won't abort, it continues as 2.2
2.2 If I won't install 'UPDATE_SCRIPT' when asked, then window with all scripts is opened and I'm allowed to update scripts. Scripts are downloaded and saved to folder, however when I run this update script again, it says that it needs to update again and I'm offered to download same scripts again. Isn't it supposed to hide scripts for which I already have latest version?
Yes, scripts that are up-to-date should be hidden. Seems that format of update_check.txt in Vista is different to XP version, so that the script's analysis fails. Or maybe cmd.exe does not work properly under Vista. Would be nice if you could send me your update_check.txt file (see private message) :)
Okie, check your pms. My guess would be localized date string or size.
bad4u wrote:
elman wrote:3. UPDATE_SCRIPT doesn't work if I have 0 movies in catalogue
Yes. I mentioned this behaviour in my first posting: "The script does NOT modify your database, so it is not important which film is chosen when starting the script (but a film has to be selected or you will get an error message). "
And yet somehow I missed that posting :grinking:
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

New version v.1.3.0 available.

I added support for Windows Vista™ but as I don't have Vista, I need some guys to test this version with Vista and report if it's working correct - thanks !

@elman: Thanks for your help. If there are still problems with the script, I will need the update_check.txt file via mail ;)

@antp: Please don't upload this script version, until it has been tested and verified by some Vista users - thanks !

Download: http://bad4u.saveitfree.com/scripts/UPDATE_SCRIPTS.ifs
elman
Posts: 226
Joined: 2005-01-03 09:05:35

Post by elman »

Nice, works as charm for me. I updated all scripts with no problem and as you said earlier, script only displayed scripts which needed an update.

And of course one needs an elevated administrator to update scripts, since you modify files in 'Program Files'.

bad4u: I sent you my UPDATE_CHECK.txt anyway, so you can double check, but as I said, works great with me.

Thanks a lot :grinking:
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Antoine, could you be so kind to upload the last version of the script, please ? One week without any error reported should be long enough, seems the Vista part is working well (and elman confirmed this before). Thanks :)
antp
Site Admin
Posts: 9676
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

ok ;)
Thermal Ions
Posts: 58
Joined: 2006-12-08 18:19:18
Location: The Land Down Under

Post by Thermal Ions »

Sorry to say that I need to throw another spanner into the works bad4u. I've used your script a couple of times, but it's never seemed to remove already updated scripts from the list to download. I've only now taken the time to investigate why, and noted that it's not actually including any scripts in the 'Latest Updates' section, rather putting them all in the 'Additional Scripts' section.

I've tracked the problem to the UPDATE_CHECK.txt file which for my version / localisation or whatever of Windows XP SP2 is created with a different layout than that expected by the script. I note that you are presently allowing for 2 different formats of this file by (I think) testing where the first space appears in the line. I however have a third format which needs to be accounted for. You can download my UPDATE_CHECK.txt file here if you are interested in amending the script.

BTW, thanks for making the script in the first place :)

Cheers.......Thermal
Thermal's Movie db / TV Series db
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

You're right.

Your update_check.txt file format is different, so analysis fails. It is because of your time format - 12 hour am/pm instead of 24 hours - which is not supported yet. I see this format in a directory listing for the first time.

Thanks for your informations :)

I'll fix that tonight.
Post Reply