@Chris wrote:
Hello,
I try to download from t411.si, but the url to download .torrent file have a hash in his name.
for download the .torrent file of this result: https://www.t411.si/torrents/50158/alien-covenant-2017-vff-vfq-1080p-bluray-hdr10-ac3-x265-hd2
the correct link is https://www.t411.si/telecharger-torrent/994627f0f148e7ffbe71702e490335af8abb1f7b/alien-covenant-2017-vff-vfq-1080p-bluray-hdr10-ac3-x265-hd2.torrentIf I try to rewrite the url:
urlrewrite: t411.si: regexp: 'https://www.t411.si/torrents/(?P<id>\d+)/(?P<name>.*)' format: 'https://www.t411.si/telecharger-torrent/\g<id>/\g<name>'
Obviously I have the id instead of the hash.
So I try to add the hash in a variable to inject it in the urlrewrite, maybe something like this:
hash=
curl -v --silent https://www.t411.si/torrents/50158/alien-covenant-2017-vff-vfq-1080p-bluray-hdr10-ac3-x265-hd2 2>&1 | grep "<div class=\"b85\">" | egrep "[a-f0-9]{40}" | cut -d\> -f2 | cut -d\< -f1
Is it possible and how ? Maybe an other way ?
Help
Posts: 1
Participants: 1