epg-grabber 0.47.0 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { n as name, v as version, d as description, p as parseNumber, l as loadJs, a as parseProxy, E as EPGGrabberMock, b as EPGGrabber, c as defaultConfig, i as isObject, g as getAbsPath, e as getUTCDate } from './index-
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
import { n as name, v as version, d as description, p as parseNumber, l as loadJs, a as parseProxy, E as EPGGrabberMock, b as EPGGrabber, c as defaultConfig, i as isObject, g as getAbsPath, e as getUTCDate } from './index-B6SCP9dP.js';
|
|
3
3
|
import { Collection, Template } from '@freearhey/core';
|
|
4
4
|
import { Command, Option } from 'commander';
|
|
5
5
|
import { SocksProxyAgent } from 'socks-proxy-agent';
|
|
@@ -96,7 +96,7 @@ function toArray(value) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
var name = "epg-grabber";
|
|
99
|
-
var version = "0.
|
|
99
|
+
var version = "0.48.0";
|
|
100
100
|
var description = "Node.js CLI tool for grabbing EPG from different sites";
|
|
101
101
|
var homepage = "https://github.com/freearhey/epg-grabber";
|
|
102
102
|
|
|
@@ -522,10 +522,13 @@ class Program {
|
|
|
522
522
|
...this.length.map(
|
|
523
523
|
(length) => el("length", { units: length.units }, [escapeString(length.value)])
|
|
524
524
|
),
|
|
525
|
+
...this.icons.map(
|
|
526
|
+
(icon) => el("icon", { src: icon.src, width: icon.width, height: icon.height })
|
|
527
|
+
),
|
|
528
|
+
...this.urls.map(createURLElement),
|
|
525
529
|
...this.countries.map(
|
|
526
530
|
(country) => el("country", { lang: country.lang }, [escapeString(country.value)])
|
|
527
531
|
),
|
|
528
|
-
...this.urls.map(createURLElement),
|
|
529
532
|
...this.episodeNumbers.map(
|
|
530
533
|
(episode) => el("episode-num", { system: episode.system }, [escapeString(episode.value)])
|
|
531
534
|
),
|
|
@@ -593,10 +596,7 @@ class Program {
|
|
|
593
596
|
[escapeString(review.value || "")]
|
|
594
597
|
)
|
|
595
598
|
),
|
|
596
|
-
...this.images.map(createImageElement)
|
|
597
|
-
...this.icons.map(
|
|
598
|
-
(icon) => el("icon", { src: icon.src, width: icon.width, height: icon.height })
|
|
599
|
-
)
|
|
599
|
+
...this.images.map(createImageElement)
|
|
600
600
|
];
|
|
601
601
|
return el(
|
|
602
602
|
"programme",
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export { C as Channel, b as EPGGrabber, E as EPGGrabberMock, P as Program } from './index-
|
|
1
|
+
#! /usr/bin/env node
|
|
2
|
+
export { C as Channel, b as EPGGrabber, E as EPGGrabberMock, P as Program } from './index-B6SCP9dP.js';
|
|
3
3
|
import 'axios-mock-adapter';
|
|
4
4
|
import 'lodash.merge';
|
|
5
5
|
import 'xml-js';
|
package/package.json
CHANGED
package/src/models/program.ts
CHANGED
|
@@ -438,10 +438,13 @@ export class Program {
|
|
|
438
438
|
...this.length.map(length =>
|
|
439
439
|
el('length', { units: length.units }, [escapeString(length.value)])
|
|
440
440
|
),
|
|
441
|
+
...this.icons.map(icon =>
|
|
442
|
+
el('icon', { src: icon.src, width: icon.width, height: icon.height })
|
|
443
|
+
),
|
|
444
|
+
...this.urls.map(createURLElement),
|
|
441
445
|
...this.countries.map(country =>
|
|
442
446
|
el('country', { lang: country.lang }, [escapeString(country.value)])
|
|
443
447
|
),
|
|
444
|
-
...this.urls.map(createURLElement),
|
|
445
448
|
...this.episodeNumbers.map(episode =>
|
|
446
449
|
el('episode-num', { system: episode.system }, [escapeString(episode.value)])
|
|
447
450
|
),
|
|
@@ -513,10 +516,7 @@ export class Program {
|
|
|
513
516
|
[escapeString(review.value || '')]
|
|
514
517
|
)
|
|
515
518
|
),
|
|
516
|
-
...this.images.map(createImageElement)
|
|
517
|
-
...this.icons.map(icon =>
|
|
518
|
-
el('icon', { src: icon.src, width: icon.width, height: icon.height })
|
|
519
|
-
)
|
|
519
|
+
...this.images.map(createImageElement)
|
|
520
520
|
]
|
|
521
521
|
|
|
522
522
|
return el(
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
<channel id="1TV.co"><display-name>1 TV</display-name><icon src="https://example.com/channel_one_icon.jpg"/><url>https://example.com/channel_one?foo=foo&bar=bar</url><lcn>36</lcn></channel>
|
|
3
3
|
<channel id="2TV.co"><display-name>2 TV</display-name><icon src="https://example.com/logos/2TV.png"/></channel>
|
|
4
4
|
<channel id="3TV.co"><display-name>3 TV</display-name></channel>
|
|
5
|
-
<programme start="20210319060000 +0000" stop="20210319063000 +0000" channel="1TV.co"><title>Program 1</title><sub-title>Sub-title & 1</sub-title><desc>Description for Program 1</desc><credits><director>Director 1<url system="TestSystem">http://example.com/director1.html</url><image>https://example.com/image1.jpg</image><image type="person" size="2" orient="P" system="TestSystem">https://example.com/image2.jpg</image></director><director>Director 2</director><actor>Actor 1</actor><actor>Actor 2</actor><writer>Writer 1</writer></credits><date>20220506</date><category>Test</category><keyword lang="en">physical-comedy</keyword><keyword lang="en">romantic</keyword><language>English</language><orig-language lang="en">French</orig-language><length units="minutes">60</length><
|
|
5
|
+
<programme start="20210319060000 +0000" stop="20210319063000 +0000" channel="1TV.co"><title>Program 1</title><sub-title>Sub-title & 1</sub-title><desc>Description for Program 1</desc><credits><director>Director 1<url system="TestSystem">http://example.com/director1.html</url><image>https://example.com/image1.jpg</image><image type="person" size="2" orient="P" system="TestSystem">https://example.com/image2.jpg</image></director><director>Director 2</director><actor>Actor 1</actor><actor>Actor 2</actor><writer>Writer 1</writer></credits><date>20220506</date><category>Test</category><keyword lang="en">physical-comedy</keyword><keyword lang="en">romantic</keyword><language>English</language><orig-language lang="en">French</orig-language><length units="minutes">60</length><icon src="https://example.com/images/Program1.png?x=шеллы&sid=777"/><url>http://example.com/title.html</url><country>US</country><episode-num system="xmltv_ns">8.238.0/1</episode-num><episode-num system="onscreen">S09E239</episode-num><video><present>yes</present><colour>no</colour><aspect>16:9</aspect><quality>HDTV</quality></video><audio><present>yes</present><stereo>Dolby Digital</stereo></audio><previously-shown/><premiere>First time on British TV</premiere><last-chance lang="en">Last time on this channel</last-chance><new/><subtitles type="teletext"><language>English</language></subtitles><subtitles type="onscreen"><language lang="en">Spanish</language></subtitles><rating system="MPAA"><value>P&G</value><icon src="http://example.com/pg_symbol.png"/></rating><star-rating system="TV Guide"><value>4/5</value><icon src="stars.png"/></star-rating><star-rating system="IMDB"><value>8/10</value></star-rating><review type="text" source="Rotten Tomatoes" reviewer="Joe Bloggs" lang="en">This is a fantastic show!</review><review type="text" source="IDMB" reviewer="Jane Doe" lang="en">I love this show!</review><review type="url" source="Rotten Tomatoes" reviewer="Joe Bloggs" lang="en">https://example.com/programme_one_review</review><image type="poster" size="1" orient="P" system="tvdb">https://tvdb.com/programme_one_poster_1.jpg?foo=foo&bar=bar</image><image type="poster" size="2" orient="P" system="tmdb">https://tmdb.com/programme_one_poster_2.jpg</image><image type="backdrop" size="3" orient="L" system="tvdb">https://tvdb.com/programme_one_backdrop_3.jpg</image><image type="backdrop" size="3" orient="L" system="tmdb">https://tmdb.com/programme_one_backdrop_3.jpg</image></programme>
|
|
6
6
|
<programme start="20210319060000 +0000" stop="20210319063000 +0000" channel="2TV.co"><title lang="es">Program 2</title></programme>
|
|
7
7
|
</tv>
|