hellowlol / nrk_api Goto Github PK
View Code? Open in Web Editor NEWAPI to interact with NRK, also includes a cli.
API to interact with NRK, also includes a cli.
Prøver å generere et image fra dockerfile, men ender etterhvert opp med følgende feilmelding:
Cloning into 'nrkdl'...
Ignoring colorama: markers 'sys_platform == "windows"' don't match your environment
Collecting aiohttp>=2.1.0 (from -r requirements.txt (line 1)) Downloading https://files.pythonhosted.org/packages/2e/e6/9175733f42cec4f2cd6834564517f2f6260e27dab5edb75afdaa66f101bb/aiohttp-2.3.1.tar.gz (1.1MB)
aiohttp requires Python '>=3.4.2' but the running Python is 2.7.15
You are using pip version 9.0.0, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c apk update && apk add python py-pip git ffmpeg && git clone https://github.com/Hellowlol/nrkdl.git && cd nrkdl && pip install -r requirements.txt' returned a non-zero code: 1
Kjører docker på Ubuntu 19.10.
Ser ut som det er noe versjoner av de ulike pakkene som ikke passer sammen?
Update: Endret dockerfile til å bruker python3.7.7-alpine som utgangspunkt, men da kom det mye mer feil.
Hei,
Jeg får følgende feilmelding under MacOS med Python 3.5.2:
marhoy@MBP: ~/GitHub/nrkdl
$ python nrkdl.py -s pinnemann
0: Pinnemann
Traceback (most recent call last):
File "nrkdl.py", line 1085, in
main()
File "nrkdl.py", line 1072, in main
nrk._console(p.search)
File "nrkdl.py", line 505, in _console
to_download.append(_build(sr['hit']))
File "nrkdl.py", line 125, in _build
if hit_type == 'serie' or item.get('seriesId', '').strip():
AttributeError: 'NoneType' object has no attribute 'strip'
Nothing gets downloaded....
using the -v switch shows the following error :
Unrecognized option 'n'
Failed to set value '-vcodec' for option 'n'
Filene lastes ned, men det vises ikke progress underveis.
Selv etter at filene har lastet ferdig står den bare sånn:
Ctrl+C
vil heller ikke avslutte prosessen, så jeg må inn i Task Manager og avslutte prosessen manuelt.
Python: 3.4.4
ffmpeg: ffmpeg version N-83622-gdcd3418
OS: Windows 10 (64 bit)
Ellers ros for et intuitivt CLI!
I am having issues downloading certain content, For example :
$ python nrkdl.py -e utf8 -s 'skomakergata' -st
9: Da Capo!
8: Da Capo! Med Sigmund Groven
7: Syngsalabim! 2:4
6: SKAI-TV 1:6
5: Henki Kolstad
4: Kanal 1 13.12.1985
3: Barnas øyeblikk
2: Distriktsnyheter Østnytt 19.12.2011
1: Selskapet 1:12
0: Jul i Skomakergata
Select a number or use slice notation
0
23: Jul i Skomakergata S01E01
22: Jul i Skomakergata S01E02
21: Jul i Skomakergata S01E03
20: Jul i Skomakergata S01E04
19: Jul i Skomakergata S01E05
18: Jul i Skomakergata S01E06
17: Jul i Skomakergata S01E07
16: Jul i Skomakergata S01E08
15: Jul i Skomakergata S01E09
14: Jul i Skomakergata S01E10
13: Jul i Skomakergata S01E11
12: Jul i Skomakergata S01E12
11: Jul i Skomakergata S01E13
10: Jul i Skomakergata S01E14
9: Jul i Skomakergata S01E15
8: Jul i Skomakergata S01E16
7: Jul i Skomakergata S01E17
6: Jul i Skomakergata S01E18
5: Jul i Skomakergata S01E19
4: Jul i Skomakergata S01E20
3: Jul i Skomakergata S01E21
2: Jul i Skomakergata S01E22
1: Jul i Skomakergata S01E23
0: Jul i Skomakergata S01E24
Select a number or use slice notation
::
Traceback (most recent call last):
File "nrkdl.py", line 1096, in
main()
File "nrkdl.py", line 1083, in main
nrk._console(p.search)
File "nrkdl.py", line 523, in _console
d.subtitle()
File "nrkdl.py", line 693, in subtitle
return Subtitle().get_subtitles(self.id, name=self.name, file_name=self.file_name)
File "nrkdl.py", line 907, in get_subtitles
content = cls._ttml_to_srt(html)
File "nrkdl.py", line 995, in _ttml_to_srt
output.write(text)
TypeError: unicode argument expected, got 'str'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.