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

Downloading subtitle popus is raised even if subtitles are exists #22

Open
georgo opened this issue Jun 17, 2014 · 18 comments
Open

Downloading subtitle popus is raised even if subtitles are exists #22

georgo opened this issue Jun 17, 2014 · 18 comments
Labels

Comments

@georgo
Copy link

georgo commented Jun 17, 2014

Hi,
I have TV Show and subtitles next to it, but this plugin always show popup to download subtitles - not only in case I don't have subtitles, but always.

See attached log, hope it helps. http://xbmclogs.com/show.php?id=228611

Happend to me to Gotham 13.1 on Windows 7 and on Android 4.2.2

Regards,
Tomas K.

@schumi2004 schumi2004 added the bug label Jun 17, 2014
@schumi2004
Copy link
Collaborator

Confirmed, will fix later today.

@Mafarricos
Copy link
Contributor

Just tested with some local files and didn't raised the popup to download subtitles.
Is this still a bug or was fixed and the issue wasn't updated?

@schumi2004
Copy link
Collaborator

Not sure, can't reproduce it.

@schumi2004
Copy link
Collaborator

It's still there.
Will check tomorrow.

@schumi2004 schumi2004 reopened this Jun 22, 2014
@Mafarricos
Copy link
Contributor

How you reproduced it?

@schumi2004
Copy link
Collaborator

Reinstalled addon and played a series episode, happend every time. I know we're to look for and testing it as we speak to be sure it's solved.

@Mafarricos
Copy link
Contributor

OK, if you are looking at it, I will leave it to you.
Thanks.

@schumi2004
Copy link
Collaborator

It's pretty simple, change line 49 til 91 if I'm correct. Change true with false and vice versa. That should fix it. It did in other addon I modded

@schumi2004
Copy link
Collaborator

In default.py

@Mafarricos
Copy link
Contributor

Will check it. This only happens to TV shows, correct?
Em 22/06/2014 22:04, "schumi2004" [email protected] escreveu:

In default.py


Reply to this email directly or view it on GitHub
#22 (comment)
.

@Mafarricos
Copy link
Contributor

I don't thing changing the true/false is the right thing.

For eg:
if (movieFullPath.find("pvr://") > -1) and getSettingAsBool('ExcludeLiveTV'):
Debug("isExcluded(): Video is playing via Live TV, which is currently set as excluded location.")
return False

Here you are telling that if path has pvr:// and is set to exclude LiveTV you will return TRUE (changing from FALSE to TRUE).

If you return TRUE it will execute the code to get subtitles, no?
Isn't the problem related to the OR in this line:
if (xbmc.Player().isPlayingVideo() and totalTime > ExcludeTime and ((not xbmc.getCondVisibility("VideoPlayer.HasSubtitles")) or (check_for_specific and not specific_language in availableLangs)) and all(movieFullPath.find (v) <= -1 for v in ignore_words) and (isExcluded(movieFullPath)) ):

You want all to be to execute the automatic push no?

I will test it.

@Mafarricos
Copy link
Contributor

@georgo in AutoSubs do you have specific language activated, if so to what language?

I tested with a movie and a serie localy and if I have subtitles To my doesn't pop ups nothing.

@schumi2004
Copy link
Collaborator

With or without language configured?

@schumi2004
Copy link
Collaborator

This is strange.

I tested it on a laptop with a clean XBMC install and reproduced it.
I renamed files like this, and that worked while playing with autosubs settings, pref language etc.
some.movie.name.2014.mkv
some.movie.anem.2014.srt

Same test but now with subtitle file like this, and then it failes.
some.movie.name.2014.en.srt

@schumi2004
Copy link
Collaborator

I played with preferred language setting #14 and noticed that it doesn't seem to function as intended.
I added a debug line to see what language it selected but it never returned any value.

Debug("[AutoSubsPlayer] Language selected: '%s'" % specific_language)

@Mafarricos
Copy link
Contributor

Will try to test based in that, to see what's happening with specific_language

@Mafarricos
Copy link
Contributor

Think it is corrected with this pull:
#25

@Mafarricos
Copy link
Contributor

Sometimes It seems I still get this problem, but only on a raspberry pi.
With streams that load the subtitles at same time as video.

I will try to get the pattern, I don't know if a xbmc.sleep(2000) before vailableLangs = xbmc.Player().getAvailableSubtitleStreams()
can prevent this problem, to delay and really load the subtitles before it gets if video has or not the subtitles?

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

No branches or pull requests

3 participants