Skip to content
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

Progress bar for video conversion #19

Merged
merged 6 commits into from
Sep 16, 2020
Merged

Conversation

fsadannn
Copy link
Contributor

pending abort convertion with 'q'

@hiancdtrsnm
Copy link
Owner

hiancdtrsnm commented Sep 16, 2020

  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/bin/video-diet", line 11, in <module>
    load_entry_point('video-diet', 'console_scripts', 'video-diet')()
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/typer/main.py", line 497, in wrapper
    return callback(**use_params)  # type: ignore
  File "/home/hian/pycode/video-diet/video_diet/main.py", line 76, in folder
    convert_video_progress_bar(str(video), str(new_path), manager)
  File "/home/hian/pycode/video-diet/video_diet/__init__.py", line 42, in convert_video_progress_bar
    proc.expect(pattern_duration)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/spawnbase.py", line 343, in expect
    return self.expect_list(compiled_pattern_list,
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/spawnbase.py", line 372, in expect_list
    return exp.expect_loop(timeout)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/expect.py", line 161, in expect_loop
    idx = self.existing_data()
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/expect.py", line 70, in existing_data
    return self.do_search(window, freshlen)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/expect.py", line 23, in do_search
    index = searcher.search(window, freshlen, self.searchwindowsize)
  File "/home/hian/.cache/pypoetry/virtualenvs/video-diet-V-QtGUqb-py3.8/lib/python3.8/site-packages/pexpect/expect.py", line 358, in search
    match = s.search(buffer, searchstart)
TypeError: cannot use a string pattern on a bytes-like object```

@fsadannn
Copy link
Contributor Author

fixed

@hiancdtrsnm hiancdtrsnm merged commit 7b4830e into hiancdtrsnm:master Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants