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

[Bug] Parabolic crashes when using Download specific timeframe option #631

Closed
JoseBritto opened this issue Oct 25, 2023 · 1 comment · Fixed by #625
Closed

[Bug] Parabolic crashes when using Download specific timeframe option #631

JoseBritto opened this issue Oct 25, 2023 · 1 comment · Fixed by #625
Labels
bug Something isn't working in-beta This issue is fixed in a beta version
Milestone

Comments

@JoseBritto
Copy link
Member

Here is the exception thrown:

System.ArgumentException: TimeSpan does not accept floating point Not-a-Number values.
   at System.TimeSpan.FromSeconds(Double value)
   at NickvisionTubeConverter.GNOME.Views.AddDownloadDialog.<.ctor>b__52_9(Object sender, NotifySignalArgs e) in /home/britto/Source/C#/Parabolic/NickvisionTubeConverter.GNOME/Views/AddDownloadDialog.cs:line 173
   at GObject.Signal`2.<>c__DisplayClass11_0.<Connect>b__0(Value returnValue, Value[] parameters)
   at GObject.Closure.InternalCallback(IntPtr closure, IntPtr returnValuePtr, UInt32 nParamValues, ValueData[] paramValuesData, IntPtr invocationHint, IntPtr userData)

Happens when MediaInfo.Duration contains NaN as its value at this line:

_timeframeEndRow.SetText(TimeSpan.FromSeconds(_controller.MediaList[0].Duration).ToString(@"hh\:mm\:ss"));

Use this url to reproduce: https://einthusan.tv/movie/watch/3034/?lang=malayalam

@JoseBritto JoseBritto changed the title Parabolic crashes when using Download specific timeframe option [Bug] Parabolic crashes when using Download specific timeframe option Oct 25, 2023
@nlogozzo nlogozzo added the bug Something isn't working label Oct 26, 2023
@nlogozzo nlogozzo added this to the V2023.10.0 milestone Oct 26, 2023
@nlogozzo nlogozzo mentioned this issue Oct 30, 2023
8 tasks
@nlogozzo nlogozzo added the in-beta This issue is fixed in a beta version label Nov 4, 2023
@nlogozzo
Copy link
Member

nlogozzo commented Nov 4, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-beta This issue is fixed in a beta version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants