oltodosel / interSubs

Interactive subtitles for mpv. Instantly translate selected word/sentence.
MIT License
225 stars 20 forks source link

The python is too long #22

Closed xoitx closed 4 years ago

xoitx commented 4 years ago

Hi, So I'm getting this even after --x11-bypass...

[py part] Starting interSubs ...V: 0.000 QCssParser::parseColorValue: Specified color with alpha value but no alpha given: 'rgba 44, 44, 44' QCssParser::parseColorValue: Specified color with alpha value but no alpha given: 'rgba 44, 44, 44' /home/water/.config/mpv/scripts/interSubs.py:1572: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. self.subtitles.setGeometry(x, y, 0, 0) /home/water/.config/mpv/scripts/interSubs.py:1575: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. self.subtitles2.setGeometry(x, y, 0, 0) /home/water/.config/mpv/scripts/interSubs.py:1192: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using int is deprecated, and may be removed in a future version of Python. blur_color = QColor(outline_color.red(), outline_color.green(), outline_color.blue(), alpha)

Any clues? THanks

oltodosel commented 4 years ago

Those are just warnings now and do not have any impact. Just ignore them.

xoitx commented 4 years ago

But the displayed subtitles appear and then disappear in a flash. The default subtitle files is working fine it's after I press F5 this happens. Is this supposed to happen? Am I missing the controls? The github page mentioned some controls but I'm assuming it's after the subtitles are shown persistently.

oltodosel commented 4 years ago

Those warnings have nothing to do with your issue. Are you on KDE? Try solutions from https://github.com/oltodosel/interSubs/issues/12

xoitx commented 4 years ago

No, I'm on i3wm. I tried with compton and without, using --x11-bypass... and without. Still the same. Does it necessarily need one of the compositors mentioned on the github page?

oltodosel commented 4 years ago

Without a composite manager it won't work. Try other compositors. Or use Tk version without it. Try https://github.com/oltodosel/interSubs/issues/12#issuecomment-433960146.