diff --git a/sites/ipko.com/ipko.com.channels.xml b/sites/ipko.com/ipko.com.channels.xml
index 04b40efa..5e462e7c 100644
--- a/sites/ipko.com/ipko.com.channels.xml
+++ b/sites/ipko.com/ipko.com.channels.xml
@@ -1,38 +1,86 @@
-
-
-
- 24 Kitchen
- ABC News
- Baby TV
- Bang Bang
- BBC World News
- Boomerang
- CNN
- Çufo
- Discovery Channel
- Discovery Science
- Eurosport 1
- Explorer Histori
- Explorer Natyra
- Explorer Shkencë
- Film Aksion
- Film Dramë
- Film Hits
- Film Komedi
- Film Thriller
- Hayat
- Junior TV
- Kohavision
- MTV Live
- My Music
- National Geographic
- News 24
- Peace TV English
- Rai 1
- Rai 2
- Rai 3
- RTK 1
- RTV 21 Sat
- Stinët
- Arta
-
\ No newline at end of file
+
+
+
+ 21 Junior
+ 21 Popullore
+ 24 Kitchen
+ ABC News
+ Alsat M
+ Baby TV
+ Bang Bang
+ BBC World
+ Boomerang
+ CNN int
+ Cufo TV
+ Discovery Channel
+ Discovery Science HD
+ EuroSport
+ EXP Histori
+ EXP Natyra
+ EXP Shkence
+ Film Aksion
+ Film Autor
+ Film Drame
+ Film Dy HD
+ Film Hits
+ Film Komedi
+ Film Nje HD
+ Film Thriller
+ Hayat TV
+ Junior TV
+ Klan Kosova
+ Kohavision
+ MTV Live HD
+ My Music
+ Nat Geo HD
+ News 24
+ Ora News
+ Peace TV
+ Rai 1
+ Rai 2
+ Rai 3
+ Radio Televizioni i Kosoves
+ Radio Televizioni 21
+ TV Dukagjini
+ Stinet
+ STV Folk
+ SuperSonic TV
+ Top Channel
+ Top News
+ TV Arta
+ Klan TV
+ Klan TV HD
+ TV Prizren
+
diff --git a/sites/ipko.com/ipko.com.config.js b/sites/ipko.com/ipko.com.config.js
index 9d30ff08..3d351e3c 100644
--- a/sites/ipko.com/ipko.com.config.js
+++ b/sites/ipko.com/ipko.com.config.js
@@ -26,6 +26,25 @@ module.exports = {
})
return programs
+ },
+ async channels() {
+ const axios = require('axios')
+
+ const data = await axios
+ .get(`https://www.ipko.com/epg/admin/channels.php`)
+ .then(r => r.data)
+ .catch(console.log)
+
+ let channels = []
+ data.element.forEach(item => {
+ channels.push({
+ lang: 'sq',
+ site_id: item.channel_id,
+ name: item.channel_name
+ })
+ })
+
+ return channels
}
}
diff --git a/sites/ipko.com/ipko.com.test.js b/sites/ipko.com/ipko.com.test.js
index 298175f5..ff3d5fbf 100644
--- a/sites/ipko.com/ipko.com.test.js
+++ b/sites/ipko.com/ipko.com.test.js
@@ -1,3 +1,4 @@
+// npm run channels:parse -- --config=./sites/ipko.com/ipko.com.config.js --output=./sites/ipko.com/ipko.com.channels.xml
// npm run grab -- --site=ipko.com
const { parser, url } = require('./ipko.com.config.js')