More > JRiver Media Center 25 for Linux
Set up JRiver Media Center 25 in Fedora and CentOS
BryanC:
Maybe I'll add an automatic mode.
max096:
--- Quote from: BryanC on May 25, 2019, 09:47:26 am ---You could always scrape Interact:
--- Code: ---curl -s https://yabb.jriver.com/interact/index.php/board,62.0.html | grep -o "2.\.0\..." | sort -r | head -n 1
--- End code ---
--- End quote ---
Appears to work. I kinda wanted to avoid this, since Im not really too confident that's not gonna break by someone creating a thread that just so happens to have a number in it.
Made the regex a bit more specific
--- Code: ---curl -s https://yabb.jriver.com/interact/index.php/board,62.0.html | grep -o "25\.[0-9]\.[0-9]\+" | sort -r | head -n 1
--- End code ---
but guess that's what I'm gonna use for now.
Thank you for your help! :)
Awesome Donkey:
A dnf repo would be very useful, I'm thinking. If you do pursue that, good luck!
BryanC:
I added an automatic mode to the script that attempts to scrape the latest version from Interact if no version number is specified. This way you can cron or systemd.timer the script for automatic updates. If you run the script with superuser rights it should be totally automatic.
--- Quote from: max096 on May 25, 2019, 10:24:48 am ---Appears to work. I kinda wanted to avoid this, since Im not really too confident that's not gonna break by someone creating a thread that just so happens to have a number in it.
Made the regex a bit more specific
--- Code: ---curl -s https://yabb.jriver.com/interact/index.php/board,62.0.html | grep -o "25\.[0-9]\.[0-9]\+" | sort -r | head -n 1
--- End code ---
but guess that's what I'm gonna use for now.
Thank you for your help! :)
--- End quote ---
I edited my post above yours, if you want it even safer then remove the sorting and just return the first line, which should always be the stickied post.
--- Code: ---curl -s https://yabb.jriver.com/interact/index.php/board,62.0.html | grep -o "2[0-9]\.[0-9]\.[0-9]\+" | head -n 1
--- End code ---
max096:
Well... you sure are faster at shell scripting that I am. xD
I'm gonna have a look at it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version