Giter Club home page Giter Club logo

Comments (4)

Cynary avatar Cynary commented on September 2, 2024

Same issue here. I'd be happy to provide a sample file for the extracted pgs subs.

from pgsrip.

m4caque avatar m4caque commented on September 2, 2024

Having the same issue, too, on Ubuntu 22.04/Python 3.10:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/core.py", line 69, in rip_pgs
    srt = PgsToSrtRipper(p, options).rip(lambda t: rules.apply(t, '')[0])
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/ripper.py", line 128, in __init__
    max_height = max([item.height for item in self.pgs.items]) // 2
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 161, in items
    self._items = self.decode(data, self.media_path)
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 182, in decode
    self.dump_display_sets(display_sets)
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 189, in dump_display_sets
    f.write(f'{new_line.join([str(ds) for ds in display_sets])}')
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 189, in <listcomp>
    f.write(f'{new_line.join([str(ds) for ds in display_sets])}')
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 449, in __str__
    strings.append(f'\t{s}')
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 206, in __str__
    for k, v in self.to_json().items():
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 191, in to_json
    return {
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 192, in <dictcomp>
    k: to_value(getattr(self, v)) for k, v in attributes.items() if getattr(self, v) is not None
  File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 274, in window_id
    return self.data[1]
IndexError: index out of range

from pgsrip.

ratoaq2 avatar ratoaq2 commented on September 2, 2024

A sample file is needed to debug this

from pgsrip.

Related Issues (15)

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.