@grantdavey91
I have just made it easy for you mate.
amended the epg.xml
use the <screen name="GraphicalEPGPIG2">
I have added all that you have requested in there...
just make sure you have all the png files I sent you in the correct location...
Hope it works for you..
Hi guys can someone give me a simple run down how to add this to slyk skin v5 i have most mods done but not sure where to add what and where to start any help would be greatly appreciated
Sent from my SM-G900F using Tapatalk
^^^^grant can you upload your files for this please ^^^^
Chabs just tried your mods uploaded the new file you posted a couple up was having the same problem as boobish and now this is the result? All files are in the correct place thanks for your time
grantdavey when you say you amended epg.xml did you just copy chabs mods into your file or did you completely overwrite it with chabs file?
grantdavey when you say you amended epg.xml did you just copy chabs mods into your file or did you completely overwrite it with chabs file?
i first looked at the differences in my epg.xml to chabs' epg.xml using diffchecker online , the only differences were the codes for the mod so i completely wrote over mine, kiddac has just said about the dividers presumably being evenly spaced meaning it wouldn't always work when going through the tabs so i am now trying to change just the tabs bit so they can go back to the original white "|" like what you have in your screenshot, then i was going to change the "|" to the colour skylightrow but i can't remember where it was!!
If you find a way before chabs get back to us then keep me posted
#!/bin/bash
#Delete existing file if it exists
rm coming-soon-to-sky-cinema-premiere
#Grab the page we want
wget http://www.sky.com/tv/channel/skycinema/gallery/coming-soon-to-sky-cinema-premiere
#Find all the links to the images we want and dump them in to links.txt
cat coming-soon-to-sky-cinema-premiere | grep -Eo "(http|https)://www.asset1.net/tv/pictures/movie/[a-zA-Z0-9./?=_-]*.jpg" | sort | uniq > links.txt
sed -i 's/.net/.net.rsz.io/g' links.txt
#Pick random line in links.txt and download it
linenum=$(( ( RANDOM % 40 ) + 1 ))
link=$(sed -n ${linenum}p "links.txt")
name=toppicks1
extension=.png
resize="?w=383&h=244&mode=stretch"
wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
#Pick random line in links.txt and download it
linenum=$(( ( RANDOM % 40 ) + 1 ))
link=$(sed -n ${linenum}p "links.txt")
name=toppicks3
extension=.png
resize="?w=183&h=116&mode=stretch"
wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
#Pick random line in links.txt and download it
linenum=$(( ( RANDOM % 40 ) + 1 ))
link=$(sed -n ${linenum}p "links.txt")
name=toppicks4
extension=.png
resize="?w=183&h=116&mode=stretch"
wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
#Pick random line in links.txt and download it
linenum=$(( ( RANDOM % 40 ) + 1 ))
link=$(sed -n ${linenum}p "links.txt")
name=toppicks6
extension=.png
resize="?w=183&h=116&mode=stretch"
wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
I'm out at the moment so can later if you need them, also the white spacer in my picture is still the original I never got it to change to anything like chabs even though I overwrote my epg.xml with his and put the icon's in the correct folders, if anything you've got further then me! Lol
U got the sh file?Right.. decided to have another crack at this toppicks downloader.
Found a nice page that has images of "coming soon to sky premiere".. it's not ideal but it's good to start with.
I've picked toppicks1.png, toppicks3.png, toppicks4.png and toppicks6.png as they are the same (ish) aspect ratio as the ones on the page.
I've found a nice service from RSZ.IO which allows me to resize images on the fly
The script finds about 40 eligible images and then randomly picks 4 of them so in theory, you could run this several times a day and it should change the images each time.
Unfortunately, this is a shell script, so i need to go back to figuring out how to get this to work in cron.. i would also need someone to see if these PNG files actually work in the skin or not.
just plop the file somewhere, chmod it to 777 and run it..
Code:#!/bin/bash #Delete existing file if it exists rm coming-soon-to-sky-cinema-premiere #Grab the page we want wget http://www.sky.com/tv/channel/skycinema/gallery/coming-soon-to-sky-cinema-premiere #Find all the links to the images we want and dump them in to links.txt cat coming-soon-to-sky-cinema-premiere | grep -Eo "(http|https)://www.asset1.net/tv/pictures/movie/[a-zA-Z0-9./?=_-]*.jpg" | sort | uniq > links.txt sed -i 's/.net/.net.rsz.io/g' links.txt #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks1 extension=.png resize="?w=383&h=244&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks3 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks4 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks6 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
U got the sh file?Right.. decided to have another crack at this toppicks downloader.
Found a nice page that has images of "coming soon to sky premiere".. it's not ideal but it's good to start with.
I've picked toppicks1.png, toppicks3.png, toppicks4.png and toppicks6.png as they are the same (ish) aspect ratio as the ones on the page.
I've found a nice service from RSZ.IO which allows me to resize images on the fly
The script finds about 40 eligible images and then randomly picks 4 of them so in theory, you could run this several times a day and it should change the images each time.
Unfortunately, this is a shell script, so i need to go back to figuring out how to get this to work in cron.. i would also need someone to see if these PNG files actually work in the skin or not.
just plop the file somewhere, chmod it to 777 and run it..
Code:#!/bin/bash #Delete existing file if it exists rm coming-soon-to-sky-cinema-premiere #Grab the page we want wget http://www.sky.com/tv/channel/skycinema/gallery/coming-soon-to-sky-cinema-premiere #Find all the links to the images we want and dump them in to links.txt cat coming-soon-to-sky-cinema-premiere | grep -Eo "(http|https)://www.asset1.net/tv/pictures/movie/[a-zA-Z0-9./?=_-]*.jpg" | sort | uniq > links.txt sed -i 's/.net/.net.rsz.io/g' links.txt #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks1 extension=.png resize="?w=383&h=244&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks3 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks4 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension #Pick random line in links.txt and download it linenum=$(( ( RANDOM % 40 ) + 1 )) link=$(sed -n ${linenum}p "links.txt") name=toppicks6 extension=.png resize="?w=183&h=116&mode=stretch" wget $link$resize -O /usr/share/enigma2/slyk-1-hd/skyicons/$name$a$extension
Sent from my SM-A500FU using Tapatalk
00 * * * * /home/root/test/toppicks2.sh > /tmp/listener.log 2>&1
Here you go
I've managed to get this running in a cron job
Code:
00 * * * * /home/root/test/toppicks2.sh > /tmp/listener.log 2>&1
that runs every night at midnight, unfortunately i've not actually got the mod install so no idea if the images work once downloaded.
Sorry grantdavey your probably getting annoyed with me now! Just wondering when you get 5 if you can take a look at the mini tv on the toppicks splash screen as you can see in the picture's below on yours some of the picture gets cut off at the bottom, on kiddac's screen it fit's properly, no rush pal but if you could take a look that would be great
In regrds to the epg, i still havent found where the line break "|" is! still searching
does anybody know where it is? i know i've found it before because i changed it to a different colour but my files have been changed so often the past week i am struggling to find it again
Thanks grantdavey do you still want my epg.xml and py files? What epg.xml is it you want to look at? The one with chabs mod in it or the original?
i can try this later tonight if you like to see if it works - do i just need to place toppicks2.sh into /home/root/test with the 00 * * * * /home/root/test/toppicks2.sh > /tmp/listener.log 2>&1 as the command on cron timer to see if it works?
i can try this later tonight if you like to see if it works - do i just need to place toppicks2.sh into /home/root/test with the 00 * * * * /home/root/test/toppicks2.sh > /tmp/listener.log 2>&1 as the command on cron timer to see if it works?
I think my cron timer is off, but the command you need to put in to cron manager is /path/to/toppicks2.sh you'll need to chmod the file too. the listener.log was there so i could see what the output waswhen it ran.
I've made a change to the code to as RSZ.io has an option to convert to PNG .
instead of keep pasting the code here, i've added it to the github
https://github.com/danmed/toppicks
just grab the toppicks2.sh