wustho / epr

CLI Epub Reader
MIT License
1.2k stars 49 forks source link

can't open the pictures when more than 2 pictures are on the page #58

Closed Glog78 closed 1 year ago

Glog78 commented 1 year ago

I just tried to look at the pictures on a page with 2 images. This leaded to a none reactive epr which i needed to shutdown by crtl+c .. The console gave the following error ->

Traceback (most recent call last):
  File "/usr/bin/epr", line 1272, in <module>
    main()
  File "/usr/bin/epr", line 1268, in main
    curses.wrapper(preread, file)
  File "/usr/lib/python3.10/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/bin/epr", line 1162, in preread
    incr, width, y, pctg = reader(stdscr, epub, idx, width, y, pctg)
  File "/usr/bin/epr", line 1042, in reader
    p = pad.getch()
jneidel commented 1 year ago

Multiple images hints on one page work fine. screenshot_22-12-11_20:45:52 You just have to select an image reference (with arrow keys) and press enter to open it.

Glog78 commented 1 year ago

this can be closed. sorry for the late respond. You are right i can select it while being in a terminal only ... that didn't work in the neovim terminal but it doesn't seem to be a bug in epr.