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

1.4.4-beta.27 is turning SRT files into blanks after syncing #2598

Closed
alfuraiji opened this issue Aug 1, 2024 · 6 comments
Closed

1.4.4-beta.27 is turning SRT files into blanks after syncing #2598

alfuraiji opened this issue Aug 1, 2024 · 6 comments

Comments

@alfuraiji
Copy link

alfuraiji commented Aug 1, 2024

Describe the bug
Bazarr is turning SRT files into blanks ( deletes everything inside the file ) after syncing - ASS files sync normally.
( happens with Arabic subtitles not sure about other languages )

To Reproduce
Steps to reproduce the behavior:
Just sync any subtitle with an SRT file

Software

  • Bazarr: [1.4.4-beta.27]
@morpheus65535
Copy link
Owner

I haven't specifically tested with beta.27 but I can't reproduce with beta.30.

  1. Downloaded an Arabic subtitles
  2. Manually synced the Arabic subtitles with an external English subtitles as reference
  3. Waited for sync to ends
  4. The synced subtitles file contains a valid subtitles

Maybe provide a debug log if you're able to reproduce?

@alfuraiji
Copy link
Author

Tested with 1.4.4-beta.30 it works fine! tested with multiple SRTs

Sorry couldn't post the log because I cleared it and forgot which SRT got blanked
will keep testing manually before I enable the auto-sync.

Thanks

@alfuraiji
Copy link
Author

alfuraiji commented Oct 26, 2024

Hi It happened again .. Arabic SRT files still get cleared and become blank with auto sync enabled.

those all are zero bytes now.
Screenshot 2024-10-26 at 3 08 04 PM

here is the log

bazarr (2).log.zip

I'm on v1.4.6-beta.12

@alfuraiji alfuraiji reopened this Oct 26, 2024
@morpheus65535
Copy link
Owner

@alfuraiji it's a totally new issue:

BAZARR Error (cannot access local variable 'anidb_id' where it is not associated with a value) trying to get video information for this file: /data/anime/Detective Conan/Season 32/Detective Conan - S32E12 - The Lost Treasure Mystery - 2024-04-13 - HDTV-1080p v2 - Erai-raws.mkv|Traceback (most recent call last):
  File "/app/bin/bazarr/subtitles/utils.py", line 48, in get_video
    refiner(path, video)
  File "/app/bin/bazarr/subtitles/refiners/anidb.py", line 206, in refine_from_anidb
  	refine_anidb_ids(video)
  File "/app/bin/bazarr/subtitles/refiners/anidb.py", line 214, in refine_anidb_ids
    anidb_series_id, anidb_episode_no, anidb_season_episode_offset = anidb_client.get_show_information(
    																 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)		
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/dogpile/cache/region.py", line 1632, in get_or_create_for_user_func
    return self.get_or_create(		
           ^^^^^^^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/dogpile/cache/region.py", line 1092, in get_or_create
    with Lock(
  File "/app/bin/bazarr/../libs/dogpile/lock.py", line 185, in __enter__
    return self._enter()		
           ^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/dogpile/lock.py", line 94, in _enter
    generated = self._enter_create(value, createdtime)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/dogpile/lock.py", line 178, in _enter_create
    return self.creator()		
           ^^^^^^^^^^^^^^
  File "/app/bin/bazarr/../libs/dogpile/cache/region.py", line 1046, in gen_value
    created_value = creator(
                    ^^^^^^^^
  File "/app/bin/bazarr/subtitles/refiners/anidb.py", line 134, in get_show_information
    return anidb_id, episode - offset, offset		
           ^^^^^^^^
UnboundLocalError: cannot access local variable 'anidb_id' where it is not associated with a value

@anderson-oki any idea?

@anderson-oki
Copy link
Collaborator

anderson-oki commented Oct 26, 2024

@morpheus65535 It is fixed here 😸 #2736

I guess v1.4.6-beta.13

@morpheus65535
Copy link
Owner

Ok thanks! So it will be fixed in upcoming beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants