Dailymotion Live Stream Issue

SS IPTV App for LG Smart TV discussion
Umut
Ensign
Ensign
Posts: 3
Joined: 16 Jun 2013, 14:57

Dailymotion Live Stream Issue

Postby Umut » 09 Feb 2019, 15:53

Hello.

The app can't play Dailymotion live streams on LG webOS 2.0. When it sends a request to Dailymotion server, it also sends a "Referer: file:///" header, and the server responds 403 Forbidden status code. If there is a blank or http://google.com value on the Referer header instead of file:///, the server responds HLS content and I can play the stream without any problem. Is it possible to remove file:/// or replace it with another value?

Example URL to test: (It will expire after 18 hours.)

Code: Select all

https://stream-05.dc3.dailymotion.com/sec(1nXeBFcLxi2SiPaUv6X4gWnn4tKtzp-6M_noM15FW8s)/dm/3/x3b68jn/d/live-4.m3u8


Example requests:

Code: Select all

GET https://stream-05.dc3.dailymotion.com/sec(1nXeBFcLxi2SiPaUv6X4gWnn4tKtzp-6M_noM15FW8s)/dm/3/x3b68jn/d/live-4.m3u8 HTTP/1.1
Referer: file:///
Host: stream-05.dc3.dailymotion.com

HTTP/1.1 403 Forbidden
Accept-Ranges: bytes
Server: lumberjack/2.2.12-2.2.15
Date: Sat, 09 Feb 2019 12:43:13 GMT
Content-Length: 0


Code: Select all

GET https://stream-05.dc3.dailymotion.com/sec(1nXeBFcLxi2SiPaUv6X4gWnn4tKtzp-6M_noM15FW8s)/dm/3/x3b68jn/d/live-4.m3u8 HTTP/1.1
Referer: http://google.com
Host: stream-05.dc3.dailymotion.com

HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=0, public
Content-Length: 456082
Content-Type: application/vnd.apple.mpegurl
Date: Sat, 09 Feb 2019 12:45:24 GMT
Expires: Sat, 09 Feb 2019 12:45:25 GMT
Last-Modified: Sat, 09 Feb 2019 12:45:21 GMT
Server: lumberjack/2.2.12-2.2.15

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:3
#EXT-X-MEDIA-SEQUENCE:1549676760
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:20.052+0100
stream-4-1549701920.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:23.052+0100
stream-4-1549701923.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:26.052+0100
stream-4-1549701926.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:29.052+0100
stream-4-1549701929.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:32.052+0100
stream-4-1549701932.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:35.052+0100
stream-4-1549701935.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:38.052+0100
stream-4-1549701938.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:41.052+0100
stream-4-1549701942.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:44.052+0100
stream-4-1549701945.ts
..................


Code: Select all

GET https://stream-05.dc3.dailymotion.com/sec(1nXeBFcLxi2SiPaUv6X4gWnn4tKtzp-6M_noM15FW8s)/dm/3/x3b68jn/d/live-4.m3u8 HTTP/1.1
Referer:
Host: stream-05.dc3.dailymotion.com


HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=1, public
Content-Length: 456082
Content-Type: application/vnd.apple.mpegurl
Date: Sat, 09 Feb 2019 12:45:40 GMT
Expires: Sat, 09 Feb 2019 12:45:42 GMT
Last-Modified: Sat, 09 Feb 2019 12:45:39 GMT
Server: lumberjack/2.2.12-2.2.15

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:3
#EXT-X-MEDIA-SEQUENCE:1549676766
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:38.052+0100
stream-4-1549701938.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:41.052+0100
stream-4-1549701942.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:44.052+0100
stream-4-1549701945.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:47.052+0100
stream-4-1549701948.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:50.052+0100
stream-4-1549701951.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:53.052+0100
stream-4-1549701954.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:56.052+0100
stream-4-1549701956.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:45:59.052+0100
stream-4-1549701959.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:46:02.052+0100
stream-4-1549701963.ts
#EXTINF:3.000000,
#EXT-X-PROGRAM-DATE-TIME:2019-02-09T09:46:05.052+0100
stream-4-1549701965.ts
........................
Signature

AlgusDark
Ensign
Ensign
Posts: 12
Joined: 13 Nov 2018, 10:45
TV Model: LG
Flag: Mexico

Re: Dailymotion Live Stream Issue

Postby AlgusDark » 10 Feb 2019, 02:44

Why don't you make a middleware with Heroku for that?


Return to “English forum SS IPTV”

Who is online

Users browsing this forum: falcoeco, Google Adsense [Bot] and 5 guests