Slyk Skin Mods v5

Status
Not open for further replies.
@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..

Thanks for this chabs, really appreciate this i've downloaded and all works fine except the service icons (DD,S,W etc)

1_0_1_23FC_7F9_2_11A0000_0_0_0 (1).jpg

on epg the duration has gone but the service icons aren't there either?

Untitled1.jpg

I had to rename the bouquet names to fit them in between the tabs and the "|" - have i done it the right way because when i scroll to another tab it all muddles up

from all channels added extra spaces by renaming the bouquets and fits

Untitled2.jpg

then when i go to next bouquet

Untitled3.jpg

it's a great mod chabs, thank you for sharing and your support
 
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

For the Top Picks MOD you will need to edit the extras.xml file to use GraphicalEPGPIG2 - instructions to edit extras.xml are in the first post of kiddac's skin thread

Download the files attached to this post

Place 'skyicons' in /usr/share/enigma2/slyk-1-hd

place toppicks.py in /usr/script (you will need to create the folder)

place 'mymods.xml' in /usr/share/enigma2/slyk-1-hd

restart GUI

add a cron timer to run daily at a time of your choice ; select custom command

command - /usr/bin/python /usr/script/toppicks.py

save

check cron timers are running

Mod should now work

---------- Post Merged at 01:28 PM ----------

^^^^grant can you upload your files for this please ^^^^

for the top picks mod or post 430? files/mod for post 430 isn't mine, it's Chabs

---------- Post Merged at 01:34 PM ----------

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

after i amended epg.xml and put the pngs in the folders for chabs' mod i get the same result as you but my "|" tabs in between have been amended to the blue colour which is right for this mod, but i had to rename all the bouquet titles by adding extra spaces so they'd fit in between the lines, but when i go to the next bouquet (hd), they are all misplaced again grrr

just waiting for chabs to come back and say i'm a complete melt cos i've done something wrong lol
 

Attachments

  • toppicksmod.zip
    845.4 KB · Views: 19
I am presuming chabs has the dividers evenly spaced in the background graphic. Hence why it doesn't always work. Square peg. Round hole.
 
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!!
 
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
 
If you find a way before chabs get back to us then keep me posted

no probs, looking at your screenshot in post 428 you're further than me with it, as you already have the "|" separator white, just needs to be changed to skylightrow

could you upload a copy of your epgselection.py and epg.xml and i will continue to look for the right bit
 
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
 
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
 
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

ok no probs, thank you

yeah i was trying to revert mine back to the original, but literally only the tabs bit, only the spanel-dark.png is needed from chabs' mod to reduce the length of the active tab

i'm having a nightmare trying to find the code for the spacers "|" opposed to using the 'bars.png' as i've found it muddles up when you go to other tabs

i swear somebody showed me before where the colour of the "|" can be changed, i've looked in epg.xml, mymods.xml, skin.xml, main-templates.xml, epgselection.py, usageconfig.py, epglist.py - for the life of me i can't find it

for the moment i've just disabled the bars.png :

1_0_1_2756_7FC_2_11A0000_0_0_0.jpg

i'll have another dig into the files soon, unless somebody can locate it quicker and let me know :grin:

can't be arsed to cook tonight, quite hot down here, off to McDonalds, need a burger!
 
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?

Sent from my SM-A500FU using Tapatalk
 
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?

Sent from my SM-A500FU using Tapatalk

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.
 

Attachments

  • toppicks2.zip
    626 bytes · Views: 18
Last edited:
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 [emoji106]
4c32e4d4f43f40a701d1b7e31bfac307.jpg
bc5d14b6781b9b2a9d167c481de12c62.jpg



Sent from my iPhone using Tapatalk
 
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.

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?

thanks

---------- Post Merged at 04:35 PM ----------

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

no not at all mate, whats a forum for! :)

i did in fact look at this last night, was playing around with it for a while but i when i changed the size all it kept doing was making the actual mini-tv box bigger/smaller opposed to making the tv picture bigger/smaller

i have the gaps on mine too, but i couldn't figure it out, hate to keep saying i don't know i will keep messing until i can find it or someone who knows could point in the right direction then i'll amend the mymods file and re-upload?

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?


Sent from my iPhone using Tapatalk
 
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

Right! found it - it's in epgselection.py

line 686

for boqs in finalbouqlist:
boqlist = boqlist + " | " + boqs[0]

although when i put the "|" back in and rebooted, it has now gone back to white which is what i wanted to do, but does anybody know how i can change the colour to skylightrow?

---------- Post Merged at 04:52 PM ----------

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?

no don't need them know, thanks though, have now found it and placed back in the epg but the default "|" is white and not to sure how to change the colour to skylightrow as the code for the separator isn't a panel or a screen name and adding in 'backgroundColor="skylightrow" on epgselection.py doesn't do anything
 
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
 
Last edited:
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

ok, sorry if i am misunderstanding, just want to make sure i set it up right.

so i don't need to use the listener log?

if i place toppicks2.sh in /usr/script

and create a cron job as daily @ midnight and then command /usr/script/toppicks.sh with toppicks.sh chmod 777

then it should download and update at midnight?

thanks
 
Status
Not open for further replies.
Back
Top