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
Conversation
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']) |
There was a problem hiding this comment.
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.
Mockrat diky. Bohuzel mi to nefunguje - ten mp4 soubor mi nikdy nic nevrati a nepovedlo se mi takhle prehrat ani jedno video.
|
mne to generuje takto URL: https://boletini.gjirafa.com/api/media/malltv/t0g1z0/index1080.mp4 a v pohode prehravam.
|
sorry, dieta mi tu vrieskalo a nevsimol som si pokec ku kodu |
ok, diky. |
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.