freetube/src/renderer/views
Emma 77470751c3
Localization inconsistency fix for Local API (#2535)
* Applying a workaround for localization issue

This changes where the title comes from on the response object from ytdl.
This is related to FreeTubeApp#2530.

* Applying the same workaround on the description

* Added a fallback to videoDetails

* Adding a console error to the title try block

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Simplifying a loop to Array.join

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Adding a console error to the description try block

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Add a map for the description lines

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>

* Added a question mark operator for descriptions

This should prevent errors from erroneously being thrown on videos
which have a blank description. If the description is undefined or does
not contain a 'runs' field, the resulting descriptionLines should be
and empty array. Then, videoDescription will be an empty string.

* Each line already contains a `\n`

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2022-09-09 13:39:56 -04:00
..
About Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
Channel Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
History clear filter in userplaylists and history when clicked "clear input" (#2349) 2022-06-24 23:53:17 +02:00
Playlist Fix playlist page sizing and layout (#2484) 2022-08-16 07:44:57 -04:00
Popular Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
ProfileEdit Store Revamp / Full database synchronization across windows (#1833) 2021-12-15 13:42:24 -05:00
ProfileSettings Fix linting issues 2020-09-01 23:25:06 -04:00
Search Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
Settings Add Parental Controls (#1456) 2022-06-21 08:14:15 +02:00
SubscribedChannels Feature/channels page (#2129) 2022-07-08 11:40:10 +08:00
Subscriptions Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
Trending Webpack bundle dependencies (#2511) 2022-09-06 02:29:10 +00:00
UserPlaylists clear filter in userplaylists and history when clicked "clear input" (#2349) 2022-06-24 23:53:17 +02:00
Watch Localization inconsistency fix for Local API (#2535) 2022-09-09 13:39:56 -04:00