Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to select video format (HLS/MP4) #5

Merged
merged 3 commits into from Feb 15, 2019

Conversation

bbaronSVK
Copy link
Contributor

teraz je moznost vybrat si medzi HLS a MP4. Pri MP4 sa da pouzit nastavena cache pre videostream z internetu a tym padom sa da zamedzit lagovaniu pocas prehravania.
HLS ma len 2s streamy, ktore sa vlozia do cache co je nedostatocne.

mall.py Outdated

videos = self.extract_videos(page, search_section=(page == 0))

for r in videos:
ctx_url = self.url_for('show', link=r['show_link'])
r['label'] = '[LIGHT]%s[/LIGHT] | %s' % (r['show_name'], r['label'])
r['label'] = '[LIGHT]{0}[/LIGHT] | {1}'.formats(r['show_name'], r['label'])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

preklep - formats neexistuje.

  • skonci na to unicode vyjimce, vrat tam prosim puvodni verzi.

@koudi
Copy link
Owner

koudi commented Feb 15, 2019

Mockrat diky. Bohuzel mi to nefunguje - ten mp4 soubor mi nikdy nic nevrati a nepovedlo se mi takhle prehrat ani jedno video.

  • mas tam chybu u formatovani nazvu, pridal jsem ti koment ke kodu.

@bbaronSVK
Copy link
Contributor Author

bbaronSVK commented Feb 15, 2019

mne to generuje takto URL: https://boletini.gjirafa.com/api/media/malltv/t0g1z0/index1080.mp4 a v pohode prehravam.
z kodi.log:

11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: GET /api/media/malltv/t0gq1t/1080/index1080.mp4 HTTP/1.1
11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: Host: zeus.gjirafa.com
11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: Range: bytes=0-
11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: User-Agent: Kodi/18.0 (Windows NT 10.0.17134; Win64; x64) App_Bitness/64 Version/18.0-Git:20190128-d81c34c465
11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: Accept: */*
11:12:15.334 T:11952   DEBUG: Curl::Debug - HEADER_OUT: Accept-Charset: UTF-8,*;q=0.8
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: HTTP/1.1 206 Partial Content
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Server: nginx/1.10.3 (Ubuntu)
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Date: Fri, 15 Feb 2019 10:12:12 GMT
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Content-Type: video/mp4
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Content-Length: 229483480
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Connection: keep-alive
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Pragma: no-cache
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Expires: Fri, 15 Feb 2019 10:12:11 GMT
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-AspNet-Version: 4.0.30319
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-Powered-By: ASP.NET
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-Backend-S: 12h
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-Backend-G: 10s
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-Backend: vppeshkaqeni
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: X-Varnish: 160190644 159000454
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Age: 11
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Via: 1.1 varnish-v4
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Access-Control-Allow-Origin:
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Access-Control-Allow-Methods: GET,OPTIONS,POST
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Access-Control-Allow-Headers: Range
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Accept-Ranges: bytes
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Content-Range: bytes 0-229483479/229483480
11:12:15.384 T:11952   DEBUG: Curl::Debug - HEADER_IN: Cache-Control: no-cache```

@bbaronSVK
Copy link
Contributor Author

sorry, dieta mi tu vrieskalo a nevsimol som si pokec ku kodu

@koudi koudi merged commit 803fea2 into koudi:master Feb 15, 2019
@koudi
Copy link
Owner

koudi commented Feb 15, 2019

ok, diky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants