GPG file in the HEAD repository

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

The latest jar is from 07 Aug:

Code: Select all

$ curl -I https://get.filebot.net/filebot/latest/FileBot.jar.xz.gpg
HTTP/1.1 200 OK
Date: Sun, 13 Aug 2017 15:22:54 GMT
...
Last-Modified: Mon, 07 Aug 2017 15:37:50 GMT
ETag: "11d8b13-5562ba1282426"
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

Nope, I still get r5192.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

Now it's forbidden?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

I disabled the index because it seems to be causing confusion.

The latest jar is available. I don't know what revision that is, but you can see the Last Modified date in my post above.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

The revision is still r5192.

That's bad because my RSS feed is based on the index page.
I don't see any confusion. The only problem is that the wrong revision is provided.
That needs to be solved.
How can I see if there is a new revision in the future?

Currently I get a 403 Foridden exception. Please make the index available again.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

You can use the curl command to fetch and update the latest version. That's what the update-filebot.sh script does. The HTTP protocol does exactly what we need. Fetch new file if there is a new file.

Not sure what you're doing, but there is no RSS feed and parsing HTML index pages is generally a bad idea.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

I download the source of the index page and parse it.
That works fine if there is something!:-)
SO PLEASE ENABLE IT!!!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

Use HTTP HEAD requests. You're doing something very simple in an unnecessarily complicated way.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

I do this for all my RSS feeds for website without one.
I asked you in the beginning if it will staz like this and you said yes.
Now you change it again and I have to adapt. Just enable the index and it's fine.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

I am not familiar with curl so it's again additional work for me. And I need it on windos.
Can you even provide some script I can use. This is really annoying.
Enabling the index would be much easier.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

HTTP is the most common network protocol. There are many many many tools that you can use. curl or wget would be among the most commonly used tools.

You have a bad solution that just so happened to kinda work. Now it doesn't, so it's time to do it properly. You will find that it'll be significantly easier (1 line) compared to whatever concoction you've come up with. I've been telling you to use curl for months. Please do. ;)

Here is a script for you:
https://github.com/filebot/filebot/blob ... filebot.sh

You can refer to this script on how to use curl, gpg and xz to download, verify and extract the jar.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

We never talked about curl. This is the first time for me.
You are joking. Such an effort only for the info that there is a new version.
I thought curl can do this.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

I tried

curl -I https://get.filebot.net/filebot/latest/

and received

HTTP/2 403
date: Mon, 14 Aug 2017 14:37:40 GMT
content-type: text/html; charset=iso-8859-1
set-cookie: __cfduid=dc5720c2bd71f8c3534e5f8cd39c6ef221502721460; expires=Tue,
4-Aug-18 14:37:40 GMT; path=/; domain=.filebot.net; HttpOnly
vary: Accept-Encoding
cf-cache-status: EXPIRED
server: cloudflare-nginx
cf-ray: 38e4a747a808232a-FRA

And bow?
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

If I try

Code: Select all

curl  -I https://get.filebot.net/filebot/latest/FileBot.jar.xz.gpg 
I get

Code: Select all

HTTP/2 200 
date: Mon, 14 Aug 2017 15:40:26 GMT
content-type: application/x-xz
content-length: 18713363
set-cookie: __cfduid=d10ddd5d3474533c37c51e8e1c94e555d1502725225; expires=Tue, 14-Aug-18 15:40:25 GMT; path=/; domain=.filebot.net; HttpOnly
last-modified: Mon, 07 Aug 2017 15:37:50 GMT
etag: "11d8b13-5562ba1282426"
cf-cache-status: HIT
expires: Tue, 15 Aug 2017 15:40:26 GMT
cache-control: public, max-age=86400
accept-ranges: bytes
server: cloudflare-nginx
cf-ray: 38e5033579bf2732-FRA
Your script downloads the gpg id HTTP_Code ne 200.
So this is the identifier right?
Last edited by Sheldon on 14 Aug 2017, 15:48, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

Does this look like a large amount of effort? :lol:

Code: Select all

curl -L -o FileBot.jar.gpg -z FileBot.jar.gpg https://get.filebot.net/filebot/latest/FileBot.jar.xz.gpg
Whenever you call this command, it'll either download the latest version, or not download the latest version if there is none.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

Yes it is because your command doesn't help at all. You directly download the gpg.
I need the info if there is a new version in an automized way.

Let's get back to my command.
If I get it right a download should be omitted if HTTP code equals 200.
For my RSS feed I can fetch the last modified if HTTP code not equals 200.
is this right?

So I have to parse the reponse,and put the data in the right format.
Additionally curl has to be added to my enviroment properly.
A bunch of work for somethng I already have.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

1.
Get Last Modified date for FileBot.jar.gpg and save it to a variable.

2.
Use curl with -z option so it doesn't download the file if it hasn't been modified.

3.
Get Last Modified date for FileBot.jar.gpg again and compare it to the previously stored variable. Did it change? If yes, then you have a new version. If no, then nothing has changed.


Not quite sure why you're talking about RSS feeds... Whatever you're doing with scraping HTML pages, you already did it the complicated way, so doing it the easy way now won't be very difficult for you, and you should have been doing it this way all along anyway. ;)
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

As I mentiond above it's unnecessary effort but I will handle it.
Thanks for that and your support.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

My RSS feed works properly again.
Please make sure that there are no more old revision cache issues in the future.
How do we get new lib files?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

Do you mean the native libraries? You can get them from the original author or compile it yourself for your platform. I also maintain some binaries for common platforms in the GitHub repository.
:idea: Please read the FAQ and How to Request Help.
User avatar
Sheldon
Posts: 188
Joined: 14 Apr 2014, 14:39

Re: GPG file in the HEAD repository

Post by Sheldon »

Yes, it's about the natives. Please provide some links.
heed
Posts: 19
Joined: 23 Dec 2014, 01:17

Re: GPG file in the HEAD repository

Post by heed »

Can not decrypt 4.7.12 Filebot.jar.xz.gpg getting the following error
PS C:\Program Files (x86)\GnuPG> gpg --trusted-key 4E402EBF7C3C6A71 --output FileBot.jar.xz --decrypt FileBot.jar.xz.gpg

gpg: Signature made 08/22/17 08:34:16 Pacific Daylight Time
gpg: using RSA key B0976E51E5C047AD0FD051294E402EBF7C3C6A71
gpg: issuer "[email protected]"
gpg: Can't check signature: No public key
PS C:\Program Files (x86)\GnuPG>
PS C:\Program Files (x86)\GnuPG> gpg --trusted-key 4E402EBF7C3C6A71 --output FileBot.jar.xz --decrypt FileBot.jar.xz.gpg

File 'FileBot.jar.xz' exists. Overwrite? (y/N) y
gpg: Signature made 08/22/17 08:34:16 Pacific Daylight Time
gpg: using RSA key B0976E51E5C047AD0FD051294E402EBF7C3C6A71
gpg: issuer "[email protected]"
gpg: Can't check signature: No public key
PS C:\Program Files (x86)\GnuPG>
Am i doing something wrong?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

You need to import my public key first and set it as trusted.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: GPG file in the HEAD repository

Post by kim »

it this and error or have you closed access to updates ?

https://get.filebot.net/filebot/latest/ ... jar.xz.gpg
Not Found

The requested URL /filebot/latest/FileBot.jar.xz.gpg was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: GPG file in the HEAD repository

Post by rednoah »

The latest jar is no longer compatible with Java 8 which is a breaking change for most users. In fact, my automated tests run on my Synology NAS which only runs Java 8, so I've removed the latest jar so it doesn't auto-update to a jar that doesn't work.

Now that I think if it, the latest jar would also make a good addition as one of the perks of the crowded funded FileBot for Linux plan:
https://www.patreon.com/filebot


EDIT:

Sorry for the capitalism here, but if anybody that uses the latest jar could pledge $1 on Patreon that would give me a good indication for how many users want to see continued support for that. :roll:
:idea: Please read the FAQ and How to Request Help.
Post Reply