Skip to content

Instantly share code, notes, and snippets.

@aeris
Created July 16, 2015 12:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aeris/8c4663fc950f63ffdffd to your computer and use it in GitHub Desktop.
Save aeris/8c4663fc950f63ffdffd to your computer and use it in GitHub Desktop.
DI.fm & Sky.fm
function Station(name, url, description, image) {
this.name = name;
this.url = url;
this.description = description;
this.image = image;
}
var channels = {
'di': {
'name': 'DI.fm',
'channels': {
'indiedance': new Station('Indie Dance', 'http://listen.di.fm/public2/indiedance.pls', 'The spirit of Rock & Roll with an electronic soul. Club culture and live music combined.', 'indiedance'),
'jazzhouse': new Station('Jazz House', 'http://listen.di.fm/public2/jazzhouse.pls', 'One of the biggest cultural soundtracks with the infectious thump of house music. Expect sultry saxophones, trumpets, and finger snapping grooves.', 'jazzhouse'),
'liquidtrap': new Station('Liquid Trap', 'http://listen.di.fm/public2/liquidtrap.pls', 'The smoother side of Trap but still packed with mechanical grooves and hip hop moods.', 'liquidtrap'),
'idm': new Station('IDM', 'http://listen.di.fm/public2/idm.pls', 'Experimental, influential and pushing the boundaries of electronic music. Truly a sound to experience.', 'idm'),
'detroithousentechno': new Station('Detroit House & Techno', 'http://listen.di.fm/public2/detroithousentechno.pls', 'Where would dance music be without Detroit? The city that started it all continues to inspire and educate.', 'detroithousentechno'),
'trance': new Station('Trance', 'http://listen.di.fm/public2/trance.pls', 'Emotive high energy dance music which embraces melodies, vocals and a true journey of dance music songwriting.', 'trance'),
'vocaltrance': new Station('Vocal Trance', 'http://listen.di.fm/public2/vocaltrance.pls', 'Lush vocals paired together with emotive dance music. Beautiful melodies and endless energy.', 'vocaltrance'),
'lounge': new Station('Lounge', 'http://listen.di.fm/public2/lounge.pls', 'Music to chill to. Music made for when it’s all about kicking off your shoes, laying back, and totally relaxing.', 'lounge'),
'chillout': new Station('Chillout', 'http://listen.di.fm/public2/chillout.pls', 'Electronic sounds, mellow mid-tempo rhythms, and a groove meant to calm the senses and ease the mind.', 'chillout'),
'vocalchillout': new Station('Vocal Chillout', 'http://listen.di.fm/public2/vocalchillout.pls', 'Relaxing vibes and a collection of vocal songs providing the laid back soundtrack to your day.', 'vocalchillout'),
'chillhop': new Station('ChillHop', 'http://listen.di.fm/public2/chillhop.pls', 'Hip hop, trip hop, downtempo beats and jazz, blended together in a mellow, laid back style for perfect listening.', 'chillhop'),
'chillstep': new Station('Chillstep', 'http://listen.di.fm/public2/chillstep.pls', 'The brilliant combination of dubstep rhythms with the mellow grooves of chillout. A unique sound all its own.', 'chillstep'),
'progressive': new Station('Progressive', 'http://listen.di.fm/public2/progressive.pls', 'Always moving forward, progressive continues to reinvent itself into new sounds and styles made for the floor.', 'progressive'),
'house': new Station('House', 'http://listen.di.fm/public2/house.pls', 'Born in Chicago and now global, house music is always evolving but remains true to it’s pure 4/4 structure.', 'house'),
'mainstage': new Station('Mainstage', 'http://listen.di.fm/public2/mainstage.pls', 'The sound of the largest events. From the gargantuan festivals, the huge main rooms and the biggest DJs.', 'mainstage'),
'minimal': new Station('Minimal', 'http://listen.di.fm/public2/minimal.pls', 'Minimal fuses elements of house, techno and electronica and strips it back to focus on the spaces between the sound.', 'minimal'),
'harddance': new Station('Hard Dance', 'http://listen.di.fm/public2/harddance.pls', 'Concrete kicks and punching rhythms, hard dance is a tougher side of music with sharp edges and aggressive power.', 'harddance'),
'eurodance': new Station('EuroDance', 'http://listen.di.fm/public2/eurodance.pls', 'Pop music infused with a high energy 4/4 pulse. Heavy on the synthesizers, the melodies and the vocals.', 'eurodance'),
'vocallounge': new Station('Vocal Lounge', 'http://listen.di.fm/public2/vocallounge.pls', 'Laid back grooves and a collection of smooth vocals soothe the ears and relax the mind.', 'vocallounge'),
'umfradio': new Station('UMF Radio', 'http://listen.di.fm/public2/umfradio.pls', 'UMF Radio 24/7', 'umfradio'),
'techhouse': new Station('Tech House', 'http://listen.di.fm/public2/techhouse.pls', 'Blending the warmth of house music with the cold structural precision of techno, tech house bridges the divide.', 'techhouse'),
'jungle': new Station('Jungle', 'http://listen.di.fm/public2/jungle.pls', 'Jungle keeps the breakbeat tempos high and celebrates the diverse ideas found within urban and rave music.', 'jungle'),
'futuregarage': new Station('Future Garage', 'http://listen.di.fm/public2/futuregarage.pls', '2step Garage rhythms, chunky bass line driven grooves and plenty of forward thinking innovation.', 'futuregarage'),
'bassnjackinhouse': new Station('Bass & Jackin\' House', 'http://listen.di.fm/public2/bassnjackinhouse.pls', 'From the funkiest grooves to the dirtiest beats. Hard-hitting, high energy 4/4 club cuts to move the masses.', 'bassnjackinhouse'),
'electro': new Station('Electro House', 'http://listen.di.fm/public2/electro.pls', 'Buzzing basslines, huge kicks, party rocking drops. House music packed full of gigantic bass and massive synths.', 'electro'),
'bigroomhouse': new Station('Big Room House', 'http://listen.di.fm/public2/bigroomhouse.pls', 'Fusing together house elements from the past and the present - prime time music full of uplifting high energy.', 'bigroomhouse'),
'nightcore': new Station('Nightcore', 'http://listen.di.fm/public2/nightcore.pls', 'Pitched up vocals, happy hardcore beats, and high energy music non-stop.', 'nightcore'),
'trap': new Station('Trap', 'http://listen.di.fm/public2/trap.pls', 'Born out of Southern Hip-Hop and influenced by techno, trap is analogue drum machines with hip-hop aesthetics.', 'trap'),
'psychill': new Station('PsyChill', 'http://listen.di.fm/public2/psychill.pls', 'Downtempo psychedelic dub grooves, goa ambient, and world beats.', 'psychill'),
'goapsy': new Station('Goa-Psy Trance', 'http://listen.di.fm/public2/goapsy.pls', 'A very psychedelic form of trance, Goa-Psy Trance is a sound full of arpeggiated synths and trippy effects.', 'goapsy'),
'progressivepsy': new Station('Progressive Psy', 'http://listen.di.fm/public2/progressivepsy.pls', 'Progress your mind to undiscovered psychedelic dimensions.', 'progressivepsy'),
'bassline': new Station('Bassline', 'http://listen.di.fm/public2/bassline.pls', 'Blending together elements of house music, speed garage, and techno – it’s all about the low end frequencies.', 'bassline'),
'hardcore': new Station('Hardcore', 'http://listen.di.fm/public2/hardcore.pls', 'Strictly for the hardcore. These are the biggest and boldest bangers, and the hardest hitting tracks.', 'hardcore'),
'downtempolounge': new Station('Downtempo Lounge', 'http://listen.di.fm/public2/downtempolounge.pls', 'Head nodding beats, chilled vocals, and lush soundscapes to bring down the sun and start the night.', 'downtempolounge'),
'djmixes': new Station('DJ Mixes', 'http://listen.di.fm/public2/djmixes.pls', 'From techno, deep house, progressive and trance – check out the sounds of the DJ deep in the mix.', 'djmixes'),
'russianclubhits': new Station('Russian Club Hits', 'http://listen.di.fm/public2/russianclubhits.pls', 'Russia\'s hottest club hits.', 'russianclubhits'),
'ambient': new Station('Ambient', 'http://listen.di.fm/public2/ambient.pls', 'Electronic sounds and atmospheric textures create a genre to enhance your state of mind and take you deeper.', 'ambient'),
'psybient': new Station('Psybient', 'http://listen.di.fm/public2/psybient.pls', 'The psychedelic side of ambient.', 'psybient'),
'drumandbass': new Station('Drum \'n Bass', 'http://listen.di.fm/public2/drumandbass.pls', 'Born in the mid 90s, drum & bass is all about fast breakbeats, urban vibes, and rib rattling basslines.', 'drumandbass'),
'nudisco': new Station('Nu Disco', 'http://listen.di.fm/public2/nudisco.pls', 'Modern disco music blending the familiar funk of the 70s and 80s with futuristic beats and up to date grooves.', 'nudisco'),
'bigbeat': new Station('Big Beat', 'http://listen.di.fm/public2/bigbeat.pls', 'Heavily focused on breakbeats and dusty samples. A defining 90s musical movement still going strong today.', 'bigbeat'),
'dub': new Station('Dub', 'http://listen.di.fm/public2/dub.pls', 'An emphasis on the bass and drums, delayed effects, sampled vocals and smokey Reggae inspired vibes.', 'dub'),
'eclectronica': new Station('EcLectronica', 'http://listen.di.fm/public2/eclectronica.pls', 'Creative music influenced from techno to chill out, indie to IDM – a unique and undefinable listening experience.', 'eclectronica'),
'classictechno': new Station('Oldschool Techno & Trance', 'http://listen.di.fm/public2/classictechno.pls', 'Go back in time and hear the biggest and best tracks within techno and trance that defined a decade of dance culture.', 'classictechno'),
'epictrance': new Station('Epic Trance', 'http://listen.di.fm/public2/epictrance.pls', 'Trance in its most boisterous form. Uplifting melodies on top of high energy beats create these euphoric anthems.', 'epictrance'),
'00sclubhits': new Station('00\'s Club Hits', 'http://listen.di.fm/public2/00sclubhits.pls', 'Your favorite dance tunes from the start of the decade. Familiar hits and overlooked classics in abundance.', '00sclubhits'),
'breaks': new Station('Breaks', 'http://listen.di.fm/public2/breaks.pls', 'Inspired by hip hop and UK rave music, breaks features broken up drum loops and creative samples, synths and fx.', 'breaks'),
'gabber': new Station('Gabber', 'http://listen.di.fm/public2/gabber.pls', 'The hardest form of techno with punishing tracks designed to drive the crowds into a sweaty frenzy.', 'gabber'),
'electronics': new Station('Electronics', 'http://listen.di.fm/public2/electronics.pls', '30+ years of open-genre electronic music. From spatial ambient sounds to experimental techno and more.', 'electronics'),
'ebm': new Station('EBM', 'http://listen.di.fm/public2/ebm.pls', 'Originating in the early 80s as a mix of industrial, punk and electropop, EBM changed the landscape of dance music and is still going strong today.', 'ebm'),
'hardtechno': new Station('Hard Techno', 'http://listen.di.fm/public2/hardtechno.pls', 'Tough as nails warehouse jams full of cold aggression, sinister structures and pounding rhythms that hit hard.', 'hardtechno'),
'drumstep': new Station('Drumstep', 'http://listen.di.fm/public2/drumstep.pls', 'A hybrid of half-time dubstep and intense drum \'n bass.', 'drumstep'),
'techno': new Station('Techno', 'http://listen.di.fm/public2/techno.pls', 'Techno is a true musical force full of structure and style. Robotic, mechanical and full of soul, always facing the future.', 'techno'),
'electroswing': new Station('Electro Swing', 'http://listen.di.fm/public2/electroswing.pls', 'The combination of 1920s-1940s jazz and swing music, big band horns and modern day electro house.', 'electroswing'),
'electronicpioneers': new Station('Electronic Pioneers', 'http://listen.di.fm/public2/electronicpioneers.pls', 'The trailblazers, the renegades and the experimental musicians who gave early inspiration with electronic instruments.', 'electronicpioneers'),
'soulfulhouse': new Station('Soulful House', 'http://listen.di.fm/public2/soulfulhouse.pls', 'House music saturated with feeling – full of melodies, vocals and true soul. Steady warm 4/4 vibes.', 'soulfulhouse'),
'deephouse': new Station('Deep House', 'http://listen.di.fm/public2/deephouse.pls', 'House music crafted for the smaller and mid-sized rooms - deeper tracks full of silky, smooth grooves.', 'deephouse'),
'deeptech': new Station('Deep Tech', 'http://listen.di.fm/public2/deeptech.pls', 'A fusion of deep house & techno. Punchy grooves, spaced out sounds and forward thinking productions.', 'deeptech'),
'tribalhouse': new Station('Tribal House', 'http://listen.di.fm/public2/tribalhouse.pls', 'The percussive side of the house and tech house scene, tribal house takes drums and puts them in the forefront.', 'tribalhouse'),
'funkyhouse': new Station('Funky House', 'http://listen.di.fm/public2/funkyhouse.pls', 'Focused on the funkiest grooves, with plenty of the guitar licks and clever samples placed around a 4/4 swing.', 'funkyhouse'),
'deepnudisco': new Station('Deep Nu-Disco', 'http://listen.di.fm/public2/deepnudisco.pls', 'Elements of house, funk, and disco. Mid-tempo beats, soulful grooves and head nodding selections.', 'deepnudisco'),
'undergroundtechno': new Station('Underground Techno', 'http://listen.di.fm/public2/undergroundtechno.pls', 'From gritty Berlin streets to dark corners of Brooklyn, this is techno made by artists pushing the genre further.', 'undergroundtechno'),
'oldschoolrave': new Station('Oldschool Rave', 'http://listen.di.fm/public2/oldschoolrave.pls', 'Grab your whistles, white gloves and reach for the laser beams. This is the sound of raving when raving was new.', 'oldschoolrave'),
'oldschoolhouse': new Station('Oldschool House', 'http://listen.di.fm/public2/oldschoolhouse.pls', 'The biggest classics and secret weapons – this is a true treasure chest of house tracks from back in the day.', 'oldschoolhouse'),
'spacemusic': new Station('Space Dreams', 'http://listen.di.fm/public2/spacemusic.pls', 'Ambient space music for expanding minds.', 'spacemusic'),
'hardstyle': new Station('Hardstyle', 'http://listen.di.fm/public2/hardstyle.pls', 'Hard techno & hardcore. A global phenomenon with powerful kicks, distorted effects and infectious melodies.', 'hardstyle'),
'chilloutdreams': new Station('Chillout Dreams', 'http://listen.di.fm/public2/chilloutdreams.pls', 'The perfect musical soundtrack for when you want to close your eyes, get truly comfortable, and drift away.', 'chilloutdreams'),
'liquiddnb': new Station('Liquid DnB', 'http://listen.di.fm/public2/liquiddnb.pls', 'Smooth as water, with the fast paced rhythms, liquid DNB flows with rolling ease without losing momentum.', 'liquiddnb'),
'darkdnb': new Station('Dark DnB', 'http://listen.di.fm/public2/darkdnb.pls', 'Evil, gritty and twisted Drum & Bass. at 160+ BPM, hear the darkest basslines and the hardest hitting percussion.', 'darkdnb'),
'classiceurodance': new Station('Classic EuroDance', 'http://listen.di.fm/public2/classiceurodance.pls', 'European pop music born in the 90s full of high energy sounds and big hooks – now heard in gyms and malls worldwide.', 'classiceurodance'),
'darkpsytrance': new Station('Dark PsyTrance', 'http://listen.di.fm/public2/darkpsytrance.pls', 'The darker form of PsyTrance, which is a sound all its own – direct from Goa to your headphones.', 'darkpsytrance'),
'handsup': new Station('Hands Up', 'http://listen.di.fm/public2/handsup.pls', 'A channel showcasing everything from hard dance, trance and happy hardcore to lift the spirits (and the arms).', 'handsup'),
'club': new Station('Club Sounds', 'http://listen.di.fm/public2/club.pls', 'The music heard in the biggest venues worldwide. From prime time pushers to deeper house shakers - the sounds of now.', 'club'),
'classictrance': new Station('Classic Trance', 'http://listen.di.fm/public2/classictrance.pls', 'The classic melodies, the epic breakdowns and gigantic builds. Re-experience Trance music in her prime.', 'classictrance'),
'classicvocaltrance': new Station('Classic Vocal Trance', 'http://listen.di.fm/public2/classicvocaltrance.pls', 'Classic sounds of Vocal Trance', 'classicvocaltrance'),
'clubdubstep': new Station('Club Dubstep', 'http://listen.di.fm/public2/clubdubstep.pls', 'The bassbin rattling, speaker-freaking hits of Dubstep – all tried, tested and approved to work in the clubs.', 'clubdubstep'),
'dubstep': new Station('Dubstep', 'http://listen.di.fm/public2/dubstep.pls', 'The wobbles of the bass, the party rocking beats, and the biggest crowd destroying drops.', 'dubstep'),
'liquiddubstep': new Station('Liquid Dubstep', 'http://listen.di.fm/public2/liquiddubstep.pls', 'Smooth, rolling and steady – this fresh formation of Dubstep keeps the sounds you love with a flowing groove.', 'liquiddubstep'),
'electropop': new Station('Electropop', 'http://listen.di.fm/public2/electropop.pls', 'Catchy pop music blended together with vintage synthesizers and electronic instrumentation.', 'electropop'),
'discohouse': new Station('Disco House', 'http://listen.di.fm/public2/discohouse.pls', 'The feel good sound inspired from 70s disco combined with the warm kick drum of modern house music.', 'discohouse'),
'classiceurodisco': new Station('Classic EuroDisco', 'http://listen.di.fm/public2/classiceurodisco.pls', 'Conceived in the European discos in the 70s, evolving through the decades into modern electronic masterpieces.', 'classiceurodisco'),
'futuresynthpop': new Station('Future Synthpop', 'http://listen.di.fm/public2/futuresynthpop.pls', 'Finest selection of futurepop and synthpop.', 'futuresynthpop'),
'latinhouse': new Station('Latin House', 'http://listen.di.fm/public2/latinhouse.pls', 'The sounds of Salsa, Brazilian beats and Latin Jazz with the steady grooves of modern East Coast dance music.', 'latinhouse'),
'oldschoolacid': new Station('Oldschool Acid', 'http://listen.di.fm/public2/oldschoolacid.pls', 'Acid, one of the characteristics of the TB-303, is celebrated here with the best tracks from house, techno and trance.', 'oldschoolacid')
}
},
'sky': {
'name': 'Sky.fm',
'channels': {
'hit00s': new Station('00\'s Hits', 'http://listen.radiotunes.com/public3/hit00s.pls', '', 'hit00s'),
'80saltnnewwave': new Station('80\'s Alt & New Wave', 'http://listen.radiotunes.com/public3/80saltnnewwave.pls', '', '80saltnnewwave'),
'bluesrock': new Station('Blues Rock', 'http://listen.radiotunes.com/public3/bluesrock.pls', '', 'bluesrock'),
'smoothjazz': new Station('Smooth Jazz', 'http://listen.radiotunes.com/public3/smoothjazz.pls', '', 'smoothjazz'),
'lovemusic': new Station('Love Music', 'http://listen.radiotunes.com/public3/lovemusic.pls', '', 'lovemusic'),
'tophits': new Station('Top Hits', 'http://listen.radiotunes.com/public3/tophits.pls', '', 'tophits'),
'relaxation': new Station('Relaxation', 'http://listen.radiotunes.com/public3/relaxation.pls', '', 'relaxation'),
'solopiano': new Station('Solo Piano', 'http://listen.radiotunes.com/public3/solopiano.pls', '', 'solopiano'),
'newage': new Station('New Age', 'http://listen.radiotunes.com/public3/newage.pls', '', 'newage'),
'smoothjazz247': new Station('Smooth Jazz 24\'7', 'http://listen.radiotunes.com/public3/smoothjazz247.pls', '', 'smoothjazz247'),
'vocalnewage': new Station('Vocal New Age', 'http://listen.radiotunes.com/public3/vocalnewage.pls', '', 'vocalnewage'),
'nature': new Station('Nature', 'http://listen.radiotunes.com/public3/nature.pls', '', 'nature'),
'the80s': new Station('Best of the 80\'s', 'http://listen.radiotunes.com/public3/the80s.pls', '', 'the80s'),
'dreamscapes': new Station('Dreamscapes', 'http://listen.radiotunes.com/public3/dreamscapes.pls', '', 'dreamscapes'),
'classicrock': new Station('Classic Rock', 'http://listen.radiotunes.com/public3/classicrock.pls', '', 'classicrock'),
'hit90s': new Station('90\'s Hits', 'http://listen.radiotunes.com/public3/hit90s.pls', '', 'hit90s'),
'80sdance': new Station('80\'s Dance', 'http://listen.radiotunes.com/public3/80sdance.pls', '', '80sdance'),
'softrock': new Station('Soft Rock', 'http://listen.radiotunes.com/public3/softrock.pls', '', 'softrock'),
'country': new Station('Country', 'http://listen.radiotunes.com/public3/country.pls', '', 'country'),
'relaxingambientpiano': new Station('Relaxing Ambient Piano', 'http://listen.radiotunes.com/public3/relaxingambientpiano.pls', '', 'relaxingambientpiano'),
'discoparty': new Station('Disco Party', 'http://listen.radiotunes.com/public3/discoparty.pls', '', 'discoparty'),
'davekoz': new Station('Dave Koz & Friends', 'http://listen.radiotunes.com/public3/davekoz.pls', '', 'davekoz'),
'classical': new Station('Mostly Classical', 'http://listen.radiotunes.com/public3/classical.pls', '', 'classical'),
'mozart': new Station('Mozart', 'http://listen.radiotunes.com/public3/mozart.pls', '', 'mozart'),
'smoothbossanova': new Station('Smooth Bossa Nova', 'http://listen.radiotunes.com/public3/smoothbossanova.pls', '', 'smoothbossanova'),
'mellowsmoothjazz': new Station('Mellow Smooth Jazz', 'http://listen.radiotunes.com/public3/mellowsmoothjazz.pls', '', 'mellowsmoothjazz'),
'downtempolounge': new Station('Downtempo Lounge', 'http://listen.radiotunes.com/public3/downtempolounge.pls', '', 'downtempolounge'),
'chillout': new Station('Chillout', 'http://listen.radiotunes.com/public3/chillout.pls', '', 'chillout'),
'vocallounge': new Station('Vocal Lounge', 'http://listen.radiotunes.com/public3/vocallounge.pls', '', 'vocallounge'),
'lounge': new Station('Lounge', 'http://listen.radiotunes.com/public3/lounge.pls', '', 'lounge'),
'baroque': new Station('Baroque Period', 'http://listen.radiotunes.com/public3/baroque.pls', '', 'baroque'),
'vocalchillout': new Station('Vocal Chillout', 'http://listen.radiotunes.com/public3/vocalchillout.pls', '', 'vocalchillout'),
'ambient': new Station('Ambient', 'http://listen.radiotunes.com/public3/ambient.pls', '', 'ambient'),
'mellowjazz': new Station('Mellow Jazz', 'http://listen.radiotunes.com/public3/mellowjazz.pls', '', 'mellowjazz'),
'cafedeparis': new Station('Café de Paris', 'http://listen.radiotunes.com/public3/cafedeparis.pls', '', 'cafedeparis'),
'00srnb': new Station('00\'s R&B', 'http://listen.radiotunes.com/public3/00srnb.pls', '', '00srnb'),
'romantic': new Station('Romantic Period', 'http://listen.radiotunes.com/public3/romantic.pls', '', 'romantic'),
'reggaeton': new Station('Reggaeton', 'http://listen.radiotunes.com/public3/reggaeton.pls', '', 'reggaeton'),
'modernrock': new Station('Modern Rock', 'http://listen.radiotunes.com/public3/modernrock.pls', '', 'modernrock'),
'smoothlounge': new Station('Smooth Lounge', 'http://listen.radiotunes.com/public3/smoothlounge.pls', '', 'smoothlounge'),
'poprock': new Station('Pop Rock', 'http://listen.radiotunes.com/public3/poprock.pls', '', 'poprock'),
'hardrock': new Station('Hard Rock', 'http://listen.radiotunes.com/public3/hardrock.pls', '', 'hardrock'),
'urbanpophits': new Station('Urban Pop Hits', 'http://listen.radiotunes.com/public3/urbanpophits.pls', '', 'urbanpophits'),
'uptemposmoothjazz': new Station('Uptempo Smooth Jazz', 'http://listen.radiotunes.com/public3/uptemposmoothjazz.pls', '', 'uptemposmoothjazz'),
'vocalsmoothjazz': new Station('Vocal Smooth Jazz', 'http://listen.radiotunes.com/public3/vocalsmoothjazz.pls', '', 'vocalsmoothjazz'),
'eurodance': new Station('EuroDance', 'http://listen.radiotunes.com/public3/eurodance.pls', '', 'eurodance'),
'slowjams': new Station('Slow Jams', 'http://listen.radiotunes.com/public3/slowjams.pls', '', 'slowjams'),
'80srock': new Station('80\'s Rock Hits', 'http://listen.radiotunes.com/public3/80srock.pls', '', '80srock'),
'dancehits': new Station('Dance Hits', 'http://listen.radiotunes.com/public3/dancehits.pls', '', 'dancehits'),
'bossanova': new Station('Bossa Nova', 'http://listen.radiotunes.com/public3/bossanova.pls', '', 'bossanova'),
'datempolounge': new Station('DaTempo Lounge', 'http://listen.radiotunes.com/public3/datempolounge.pls', '', 'datempolounge'),
'classicalperiod': new Station('Classical Period', 'http://listen.radiotunes.com/public3/classicalperiod.pls', '', 'classicalperiod'),
'pianojazz': new Station('Piano Jazz', 'http://listen.radiotunes.com/public3/pianojazz.pls', '', 'pianojazz'),
'modernblues': new Station('Modern Blues', 'http://listen.radiotunes.com/public3/modernblues.pls', '', 'modernblues'),
'meditation': new Station('Meditation', 'http://listen.radiotunes.com/public3/meditation.pls', '', 'meditation'),
'bebop': new Station('Bebop Jazz', 'http://listen.radiotunes.com/public3/bebop.pls', '', 'bebop'),
'jazzclassics': new Station('Jazz Classics', 'http://listen.radiotunes.com/public3/jazzclassics.pls', '', 'jazzclassics'),
'oldies': new Station('Oldies', 'http://listen.radiotunes.com/public3/oldies.pls', '', 'oldies'),
'60srock': new Station('60\'s Rock', 'http://listen.radiotunes.com/public3/60srock.pls', '', '60srock'),
'hit70s': new Station('Hit 70\'s', 'http://listen.radiotunes.com/public3/hit70s.pls', '', 'hit70s'),
'edmfest': new Station('EDM Fest', 'http://listen.radiotunes.com/public3/edmfest.pls', '', 'edmfest'),
'classicmotown': new Station('Classic Motown', 'http://listen.radiotunes.com/public3/classicmotown.pls', '', 'classicmotown'),
'guitar': new Station('Classical Guitar', 'http://listen.radiotunes.com/public3/guitar.pls', '', 'guitar'),
'classicalpianotrios': new Station('Classical Piano Trios', 'http://listen.radiotunes.com/public3/classicalpianotrios.pls', '', 'classicalpianotrios'),
'salsa': new Station('Salsa', 'http://listen.radiotunes.com/public3/salsa.pls', '', 'salsa'),
'altrock': new Station('Alternative Rock', 'http://listen.radiotunes.com/public3/altrock.pls', '', 'altrock'),
'indierock': new Station('Indie Rock', 'http://listen.radiotunes.com/public3/indierock.pls', '', 'indierock'),
'metal': new Station('Metal', 'http://listen.radiotunes.com/public3/metal.pls', '', 'metal'),
'rootsreggae': new Station('Roots Reggae', 'http://listen.radiotunes.com/public3/rootsreggae.pls', '', 'rootsreggae'),
'romantica': new Station('Romantica', 'http://listen.radiotunes.com/public3/romantica.pls', '', 'romantica'),
'hit60s': new Station('Best of the 60\'s', 'http://listen.radiotunes.com/public3/hit60s.pls', '', 'hit60s'),
'urbanjamz': new Station('Urban Hits', 'http://listen.radiotunes.com/public3/urbanjamz.pls', '', 'urbanjamz'),
'90srnb': new Station('90\'s R&B', 'http://listen.radiotunes.com/public3/90srnb.pls', '', '90srnb'),
'classicrap': new Station('Classic Hip-Hop', 'http://listen.radiotunes.com/public3/classicrap.pls', '', 'classicrap'),
'oldschoolfunknsoul': new Station('Old School Funk & Soul', 'http://listen.radiotunes.com/public3/oldschoolfunknsoul.pls', '', 'oldschoolfunknsoul'),
'americansongbook': new Station('American Songbook', 'http://listen.radiotunes.com/public3/americansongbook.pls', '', 'americansongbook'),
'christian': new Station('Contemporary Christian', 'http://listen.radiotunes.com/public3/christian.pls', '', 'christian'),
'world': new Station('World', 'http://listen.radiotunes.com/public3/world.pls', '', 'world'),
'soundtracks': new Station('Movie Soundtracks', 'http://listen.radiotunes.com/public3/soundtracks.pls', '', 'soundtracks'),
'clubbollywood': new Station('Club Bollywood', 'http://listen.radiotunes.com/public3/clubbollywood.pls', '', 'clubbollywood'),
'jpop': new Station('Jpop', 'http://listen.radiotunes.com/public3/jpop.pls', '', 'jpop')
}
}
};
function onConfigure() {
Amarok.alert("This script doesn't require configuration.");
}
function onPopulating(level, callbackData, filter) {
if (level == 0) {
var chs = channels[callbackData]['channels'];
for(var key in chs) {
var channel = chs[key];
var item = Amarok.StreamItem;
item.level = 0;
item.callbackData = '';
item.itemName = channel.name;
item.infoHtml = channel.description;
item.playableUrl = channel.url;
script.insertItem(item);
}
} else if (level == 1) {
for(var key in channels) {
var site = channels[key];
var item = Amarok.StreamItem;
item.level = 1;
item.callbackData = key;
item.itemName = site['name'];
script.insertItem(item);
}
}
script.donePopulating();
}
function Radios() {
ScriptableServiceScript.call(this, 'DI.fm', 2, 'Digitally Imported - addictive electronic music', 'Digitally Imported streams the world\'s most addictive electronic music. Our radio channels feature world renowned artists, DJs, and the hottest exclusive shows. Discover the community and the wide variety of electronic music covering Trance, House, Dance…', false);
}
script = new Radios();
script.populate.connect(onPopulating);
[Desktop Entry]
Icon=get-hot-new-stuff-amarok
Type=script
ServiceTypes=KPluginInfo
Name=DI.fm
Comment=Digitally Imported - addictive electronic music
X-KDE-PluginInfo-Author=Aeris
X-KDE-PluginInfo-Email=aeris+amarok@imirhil.fr
X-KDE-PluginInfo-Name=DI.fm
X-KDE-PluginInfo-Version=1.0
X-KDE-PluginInfo-Category=Scriptable Service
X-KDE-PluginInfo-Depends=Amarok2.0
X-KDE-PluginInfo-License=AGPLv3+
X-KDE-PluginInfo-BugAddress=aeris+amarok@imirhil.fr
X-KDE-PluginInfo-EnabledByDefault=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment