This commit introduces a new member to VideoPlayer, initialSeekComplete.
The boolean is set to true after the timestamp has been set on videoEl
from the query or IDB.
If there's no existing timestamp its set to true immediately.
Change updateProgressDatabase() to update watch_history when
initialSeekComplete is true.
This fixes a race condition where updateProgressDatabase() would run
before the saved time could be loaded.
Since the initial timestamp on the video element was 0
the saved time would be forgotten.
* Translated using Weblate (Malayalam)
Currently translated at 93.5% (73 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ml/
* Translated using Weblate (Bengali)
Currently translated at 97.4% (76 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/bn/
* Added translation using Weblate (Swedish)
* Translated using Weblate (Swedish)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/sv/
* Add Swedish to language selector.
Co-authored-by: vachan-maker <vachan2014carmel@gmail.com>
Co-authored-by: ispeakbangla <nopetaci@altmails.com>
Co-authored-by: Shjosan <shjosan@kakmix.co>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Czech)
* Translated using Weblate (Czech)
Currently translated at 2.5% (2 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/cs/
* Translated using Weblate (Czech)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/cs/
* Add Czech to language selector.
Co-authored-by: Tex <apptex@criptext.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Portuguese)
* Added translation using Weblate (Korean)
* Translated using Weblate (Portuguese)
Currently translated at 92.3% (72 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/pt/
* Translated using Weblate (Korean)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ko/
* Add Korean and Portuguese to language selector.
Co-authored-by: Joao Santos <jm_santos7@hotmail.com>
Co-authored-by: Kim Tae Kyeong <kim@taekyeong.me>
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Icelandic)
* Translated using Weblate (Icelandic)
Currently translated at 30.7% (24 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/is/
* Translated using Weblate (Icelandic)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/is/
* Added translation using Weblate (Indonesian)
* Translated using Weblate (Indonesian)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/id/
* Add Icelandic and Indonesian to language selector.
Co-authored-by: Trendyne <eiko@chiru.no>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Ukrainian)
* Translated using Weblate (Ukrainian)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/uk/
* Add Ukranian to language selector.
Co-authored-by: Tim D. Vutor <xlson015@gmail.com>
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* Translated using Weblate (Croatian)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hr/
* Added translation using Weblate (Japanese)
* Translated using Weblate (Japanese)
Currently translated at 100.0% (78 of 78 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ja/
* Add Japanese to language selector.
Co-authored-by: rootedetc <rootable@protonmail.com>
Co-authored-by: からトン <inthemountain0828@gmail.com>
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* this is test localization to russian language
i didnt translate string
"disable_lbry": "Disable LBRY for Streaming",
because i dont fully understand what this option does. i opt-in and opt-out this option on videos that have copies on LBRY but nothing changes.
* Add russian to language selector.
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* feat: adds the option to toggle listen mode when watching a video
* feat: improve a11y
* Change some logic.
Co-authored-by: FireMaskterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Chinese (Simplified))
* Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (64 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/zh_Hans/
* Added translation using Weblate (Basque)
* Translated using Weblate (Basque)
Currently translated at 100.0% (64 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/eu/
* Added translation using Weblate (Finnish)
* Translated using Weblate (French)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fr/
* Translated using Weblate (German)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/de/
* Translated using Weblate (Italian)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/it/
* Translated using Weblate (Spanish)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/es/
* Translated using Weblate (Finnish)
Currently translated at 74.2% (52 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fi/
* Translated using Weblate (Lithuanian)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/lt/
* Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/zh_Hans/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/tr/
* Translated using Weblate (Croatian)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hr/
* Translated using Weblate (Basque)
Currently translated at 100.0% (70 of 70 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/eu/
* Add support for Finnish and Chinese Simplified.
Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
Co-authored-by: Sergio Varela <sergitroll9@gmail.com>
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: Milo Ivir <mail@milotype.de>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Translated using Weblate (Malayalam)
Currently translated at 96.8% (62 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ml/
* Added translation using Weblate (Croatian)
* Translated using Weblate (Croatian)
Currently translated at 100.0% (64 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hr/
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 90.6% (58 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/nb_NO/
* Added translation using Weblate (Spanish)
* Translated using Weblate (Spanish)
Currently translated at 100.0% (64 of 64 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/es/
* Add languages to selector.
Co-authored-by: vachan-maker <vachan2014carmel@gmail.com>
Co-authored-by: rootedetc <rootable@protonmail.com>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Sergio Varela <sergitroll9@gmail.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Add load more logic to feeds
* Remove load more, show more videos when scroll at the bottom of the page.
* Remove @scrool from dib
* Cleanup scroll listener.
Co-authored-by: Karlis Cudars <mainkarlis@Karliss-MacBook-Pro.local>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Remove 'views' text - add '•' between views and time ago - make views and time ago a one liner - add uploader avatar beside channel name
* Remove uploader image beside channel name
* change video channel layout
* Fix title margin when there is no img source - shrink avatar size - add router-link for avatar - remove padding from title
* Finalize video item styling
Co-authored-by: jim3692 <jim3692@gmail.com>
* Added translation using Weblate (Italian)
* Translated using Weblate (Greek)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/el/
* Translated using Weblate (Italian)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/it/
* Translated using Weblate (Lithuanian)
Currently translated at 100.0% (41 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/lt/
* Translated using Weblate (Turkish)
Currently translated at 100.0% (41 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/tr/
* Translated using Weblate (Italian)
Currently translated at 100.0% (41 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/it/
* Added translation using Weblate (Persian)
* Translated using Weblate (French)
Currently translated at 100.0% (41 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fr/
* Translated using Weblate (German)
Currently translated at 100.0% (41 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/de/
* Translated using Weblate (Persian)
Currently translated at 75.6% (31 of 41 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fa/
* Add support for Persian.
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: IceDBorn <weblate.tain@dralias.com>
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: alefvanoon <alefvanoon@tuta.io>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Turkish)
* Translated using Weblate (Turkish)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/tr/
* Add support for Turkish.
Co-authored-by: Oğuz Ersen <oguzersen@protonmail.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Greek)
* Translated using Weblate (Greek)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/el/
* Translated using Weblate (Greek)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/el/
* Add support for Greek.
Co-authored-by: IceDBorn <weblate.tain@dralias.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (German)
* Added translation using Weblate (Norwegian Bokmål)
* Added translation using Weblate (Chinese (Traditional))
* Translated using Weblate (Norwegian Bokmål)
Currently translated at 82.5% (33 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/nb_NO/
* Added translation using Weblate (Malayalam)
* Translated using Weblate (French)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fr/
* Translated using Weblate (French)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/fr/
* Translated using Weblate (German)
Currently translated at 100.0% (40 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/de/
* Translated using Weblate (Chinese (Traditional))
Currently translated at 42.5% (17 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/zh_Hant/
* Translated using Weblate (Malayalam)
Currently translated at 90.0% (36 of 40 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ml/
* Add support for 4 new languages.
Co-authored-by: J. Lavoie <j.lavoie@net-c.ca>
Co-authored-by: Allan Nordhøy <epost@anotheragency.no>
Co-authored-by: Jamugha <hackdown@necord.com>
Co-authored-by: vachan-maker <vachan2014carmel@gmail.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* Added translation using Weblate (Lithuanian)
* Translated using Weblate (Lithuanian)
Currently translated at 100.0% (8 of 8 strings)
Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/lt/
* Add support for Lithuanian.
Co-authored-by: Gediminas Murauskas <muziejusinfo@gmail.com>
Co-authored-by: FireMasterK <20838718+FireMasterK@users.noreply.github.com>
* WIP login and subscriptions.
* Add a working feed and unsubscribe button.
* Allow importing subscriptions from Google Takeout, NewPipe and Invidious.
* Add router caching.
* Avoid memory leak by limiting cache size.
* Fix search result caching.
* Remove remains of previous player.
Fixes an issue where the spinner/loading from a previous player can show up in a cached page.