Page MenuHomeSolus

Change library from pysrt to srt
ClosedPublic

Authored by infinitymdm on Nov 11 2022, 1:46 AM.
Tags
None
Referenced Files
F11024626: D13754.diff
Tue, Aug 8, 10:52 PM
F11005768: D13754.diff
Tue, Aug 1, 9:59 AM
F10866428: D13754.diff
Jun 17 2023, 3:31 PM
F10836050: D13754.id33577.diff
Jun 8 2023, 9:36 AM
F10835860: D13754.id.diff
Jun 8 2023, 6:50 AM
F10803316: D13754.id33577.diff
May 29 2023, 11:14 AM
F10803236: D13754.id33578.diff
May 29 2023, 10:51 AM
F10803221: D13754.id33578.diff
May 29 2023, 10:45 AM
Subscribers
Tokens
"Cup of Joe" token, awarded by Staudey.

Details

Summary

Patch subliminal to use srt instead of pysrt.

Since subliminal is the only package that depends on the apparently unmaintained pysrt library, this patch would allow us to deprecate pysrt and replace it with srt.
To be completely honest, I don't really use this sort of software. It needs thorough testing by someone who will actually use it.

Depends on T10431 python-srt.

Test Plan

Execute subliminal --help in terminal

Diff Detail

Repository
R2972 subliminal
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

algent requested changes to this revision.Nov 11 2022, 5:17 PM
algent added a subscriber: algent.

Marking this as "Request Changes", because python-srt is not accepted yet for inclusion, to avoid accidental landing.

This revision now requires changes to proceed.Nov 11 2022, 5:17 PM
Staudey added a subscriber: Staudey.

LGTM, thanks! It works just as well (or more accurately, just as badly) as with python-pysrt in my testing. Maybe we will have to get rid of subliminal altogether in the future, but this is definitely a workable solution for the time in-between now and then.

This revision is now accepted and ready to land.Jan 13 2023, 1:58 PM
This revision was automatically updated to reflect the committed changes.