Giter VIP home page Giter VIP logo

nrk_api's People

Contributors

dependabot[bot] avatar esp0 avatar hellowlol avatar janhoy avatar tknapstad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nrk_api's Issues

Feil ved bruk av dockerfile

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.

seriesID er tom

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'

Tv shows not downloaded

Nothing gets downloaded....

using the -v switch shows the following error :

Unrecognized option 'n'
Failed to set value '-vcodec' for option 'n'

Progressen vises ikke

Filene lastes ned, men det vises ikke progress underveis.
Selv etter at filene har lastet ferdig står den bare sånn:
image
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!

Trouble downloading certain content

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'

brainstorm

  • add param for codec and container
  • subs
  • single eps/multi
  • url
  • dry run
  • file input (i dont think it would be used but would be nice as there is no rate limit) should support urls on Lines
  • translate, check if NRK api supports that language, if not fall back to Google translate
  • pytest
  • test vs json responses and api vs expected format.
  • add code docs and fix spelling
  • gui ? http://chriskiehl.com/article/packaging-gooey-with-pyinstaller/
  • User should be able to set a own session.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.