[
  {
    "path": ".gitignore",
    "content": "node_modules\nrelease\ntest.js\n.*\n!/.gitignore\ntodo.txt\nffmpeg*\nffmpeg.exe\ngenerated-sources.json\nffmpeg.patch\ndeno*\nnode.exe\nnode"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "<img src=\"https://github-production-user-asset-6210df.s3.amazonaws.com/66430340/238887646-33b4cba9-3c45-4042-83d1-b79e94a3a769.png\" style=\"width:80px;\">\n\n# ytDownloader\n\n[![Flathub](https://img.shields.io/flathub/downloads/io.github.aandrew_me.ytdn?label=Flathub%20downloads)](https://flathub.org/apps/details/me.aandrew.ytdownloader)\n[![GitHub downloads](https://img.shields.io/github/downloads/aandrew-me/ytdownloader/total?label=Github%20downloads)](https://github.com/aandrew-me/ytDownloader/releases)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/aandrew-me/ytdownloader?label=latest%20release)](https://github.com/aandrew-me/ytDownloader/releases/latest)\n[![Flathub](https://img.shields.io/flathub/v/io.github.aandrew_me.ytdn)](https://flathub.org/apps/io.github.aandrew_me.ytdn)\n[![Snapcraft](https://img.shields.io/snapcraft/v/ytdownloader/latest/stable)](https://snapcraft.io/ytdownloader)\n![Chocolatey Version](https://img.shields.io/chocolatey/v/ytdownloader)\n![WinGet Package Version](https://img.shields.io/winget/v/aandrew-me.ytDownloader)\n\nA modern GUI video and audio downloader supporting [hundreds of sites](https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md)\n\n\n[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/ytdownloader)\n[![Get AppImage](https://raw.githubusercontent.com/srevinsaju/get-appimage/master/static/badges/get-appimage-branding-blue.png)](https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Linux.AppImage)\n<a href=\"https://flathub.org/apps/io.github.aandrew_me.ytdn\"><img src=\"https://flathub.org/api/badge?svg&locale=en\" style=\"width:180px;\"></a>\n<a href=\"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Win.exe\n\"><img src=\"https://user-images.githubusercontent.com/66430340/187172806-a8edd12a-ef58-4a05-96a3-99d7490b42f6.png\" style=\"width:190px;\"></a>\n<a href=\"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Mac_arm64.dmg\"><img src=\"https://cdn.jsdelivr.net/gh/aandrew-me/badges/download_mac_apple_silicon.png\" style=\"width:200px;\"></a>\n<a href=\"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Mac_x64.dmg\"><img src=\"https://cdn.jsdelivr.net/gh/aandrew-me/badges/download_mac_intel.png\" style=\"width:200px;\"></a>\n<a href=\"https://community.chocolatey.org/packages/ytdownloader\"><img style=\"width:200px;\" src=\"https://github-production-user-asset-6210df.s3.amazonaws.com/66430340/238886537-7b2769fe-bd62-4921-a0eb-edf2eb06216d.png\" alt=\"Chocolatey\"></a>\n\n## Features 🚀\n\n\n✅ Supports hundreds of sites including Youtube, Facebook, Instagram, Tiktok, Twitter and so on.\n\n✅ Multiple themes\n\n✅ Video Compressor with Hardware Acceleration\n\n✅ Advanced options like Range Selection, Subtitles\n\n✅ Download playlists\n\n✅ Available on Linux, Windows & macOS\n\n✅ Fast download speeds\n\n✅ And of-course no trackers or ads\n\n## Screenshots\n\n<!-- ![dark](https://user-images.githubusercontent.com/66430340/196022794-885e5b90-40d2-4b58-a8fa-74f10c6e470e.png) -->\n<!-- ![light](https://user-images.githubusercontent.com/66430340/196022796-1215038d-bafb-4450-82b1-7baddd60c0e8.png) -->\n\n\n<!-- ![ytdownloader_dark](https://github.com/aandrew-me/ytDownloader/assets/66430340/62efbca0-28b8-4016-bcf2-1a14bcaa782c) -->\n<!-- ![ytdownloader_light](https://github.com/aandrew-me/ytDownloader/assets/66430340/34f5270f-bdea-460e-8622-6459cd147b73) -->\n\n![ss_homepage](https://github.com/user-attachments/assets/12410bca-31c3-48a0-bbd3-1d74bcc752b6)\n![ss_settings](https://github.com/user-attachments/assets/060557bc-d209-4bd0-bda4-debe42ca83a0)\n![ss_compressor](https://github.com/user-attachments/assets/52da7e50-46bb-4749-8152-5e79324a6cc3)\n\n\n\n<!-- ![ytdownloader_dark](https://github.com/aandrew-me/ytDownloader/assets/66430340/2f6695e7-6ca0-4f7c-91a0-0ad735c1e3af) -->\n<!-- ![ytdownloader_light](https://github.com/aandrew-me/ytDownloader/assets/66430340/3c974ab0-8257-4b8a-88ec-ee6bd119751e) -->\n\n# Installation\n\n## Windows 🪟\n\n-   **Traditional way**\n\n    Download and install the exe or msi file. Exe file lets you choose custom download location, msi file doesn't ask for location. Windows defender may show a popup saying **Windows Protected Your PC**. Just click on **More info** and click on **Run Anyway**\n\n-   **Chocolatey**\n    App can be installed from [Chocolatey](https://community.chocolatey.org/packages/ytdownloader) using the following command\n    ```\n    choco install ytdownloader\n    ```\n-   **Scoop**\n    App can be installed with [Scoop](https://scoop.sh) using the following command\n    ```\n    scoop install https://raw.githubusercontent.com/aandrew-me/ytDownloader/main/ytdownloader.json\n    ```\n-   **Winget**\n\n    App can be installed with [Winget](https://github.com/microsoft/winget-cli) using the following command\n    ```\n    winget install aandrew-me.ytDownloader\n    ```\n## Linux 🐧\n\nLinux has several options available - Flatpak, AppImage and Snap.\nFlatpak is recommended. For arm processors, download from flathub.\n\n-   ### AppImage\n\n    **AppImage** format is supported on most Linux distros and has Auto-Update support.\n    It just needs to be executed after downloading. See more about [AppImages here](https://appimage.org/).\n\n    [AppImageLauncher](https://github.com/TheAssassin/AppImageLauncher) is recommended for integrating AppImages.\n\n-   ### Flatpak\n    ```\n    flatpak install flathub io.github.aandrew_me.ytdn\n    ```\n-   ### Snapcraft\n    ```\n    sudo snap install ytdownloader\n    ```\n\n## macOS 🍎\n\nSince the app is not signed, when you will try to open the app, macOS will not allow you to open it. \n\nYou need to open terminal and execute:\n```\nsudo xattr -r -d com.apple.quarantine /Applications/YTDownloader.app \n```\n\nYou will also need to install `yt-dlp` with [homebrew](https://brew.sh/)\n```\nbrew install yt-dlp\n```\n\n## Internationalization (Localization) 🌍\n\nTranslations into other languages would be highly appreciated. If you want to help translating the app to other languages, you can join from [here](https://crwd.in/ytdownloader). Open a new issue and that language will be added to Crowdin. Please don't make pull requests with json files, instead use Crowdin.\n\n[![Crowdin](https://badges.crowdin.net/ytdownloader/localized.svg)](https://crowdin.com/project/ytdownloader)\n\n### ✅ Available languages\n\n| Name                | Status |\n| ------------------- | ------ |\n| Arabic              | ✔️     |\n| Bengali             | ✔️     |\n| English             | ✔️     |\n| Chinese Simplified  | ✔️     |\n| Chinese Traditional | ✔️     |\n| Finnish             | ✔️     |\n| Hindi               | ✔️     |\n| French              | ✔️     |\n| Finnish             | ✔️     |\n| German              | ✔️     |\n| Greek               | ✔️     |\n| Hungarian           | ✔️     |\n| Italian             | ✔️     |\n| Japanese            | ✔️     |\n| Persian             | ✔️     |\n| Polish              | ✔️     |\n| Portuguese (Brazil) | ✔️     |\n| Russian             | ✔️     |\n| Spanish             | ✔️     |\n| Turkish             | ✔️     |\n| Ukrainian           | ✔️     |\n| Vietnamese          | ✔️     |\n\nThanks to [nxjosephofficial](https://github.com/nxjosephofficial), [LINUX-SAUNA](https://t.me/linuxsauna), [Proxycon](https://github.com/proxycon), [albanobattistella](https://github.com/albanobattistella), [TheBlueQuasar](https://github.com/TheBlueQuasar), [MrQuerter](https://github.com/MrQuerter), [KotoWhiskas](https://github.com/KotoWhiskas), [André](https://github.com/andre1828), [haggen88](https://github.com/haggen88), [XfedeX](https://github.com/XfedeX), [Jok3r](https://github.com/th3knv), [TitouanReal](https://github.com/TitouanReal), [soredake](https://github.com/soredake), [yoi](https://github.com/thiennguyenqn), [HowlingWerewolf](https://github.com/HowlingWerewolf), [Kum](https://github.com/kum4423), [Mohammed Bakry](https://crowdin.com/profile/m7md_b4kry), [Huang Bingfeng](https://github.com/jackiotyu), [Abhinav](https://github.com/abhixdd), [CodWiz](https://github.com/C0dwiz) and others for helping.\n\n## Used technologies\n\n-   [yt-dlp](https://github.com/yt-dlp/yt-dlp)\n-   [Electron](https://www.electronjs.org/)\n-   [ffmpeg](https://ffmpeg.org/)\n-   [nodeJS](https://nodejs.org/en/)\n-   [flaticon](https://www.flaticon.com/)\n\n## For building or running from source code\n\n[Nodejs](https://nodejs.org/) (along with npm) needs to be installed.\n\nRequired commands to get started.\n\n```\ngit clone https://github.com/aandrew-me/ytDownloader.git\ncd ytDownloader\nnpm i\n```\n\nTo run with [Electron](https://www.electronjs.org/) :\n\n```\nnpm start\n```\n\nYou need to download ffmpeg and put it in the root directory of the project. If you don't need to build for arm processor, you can download ffmpeg by executing any of the files - linux.sh / mac.sh / windows.sh depending on the platform. Otherwise you need to download ffmpeg from [here](https://github.com/yt-dlp/FFmpeg-Builds/releases) for windows/linux and from [here](http://www.osxexperts.net/) for mac (not tested)\n\nTo build for Linux (It will create packages as specified in package.json). The builds are stored in **release** folder.\n```\nnpm run linux\n```\n\nTo build for Windows\n\n```\nnpm run windows\n```\n\nTo build for macOS\n\n```\nnpm run mac\n```\nIf you only want to build for one format, you can do\n```\nnpx electron-builder -l appimage\n```\nIt will just create a linux appimage build.\n"
  },
  {
    "path": "assets/css/extra.css",
    "content": "@font-face {\n\tfont-family: \"JetBrains\";\n\tsrc: url(\"../fonts/JetBrainsMono-Regular.ttf\") format(\"truetype\");\n}\n\n:root[theme=\"light\"] {\n\t--background: #f9fafb;\n\t--text: #1f2937;\n\t--box-main: #f3f4f6;\n\t--box-toggle: rgb(215 238 233);\n\t--box-separation: #e5e7eb;\n\t--box-toggleOn: rgb(127, 250, 172);\n\t--item-bg: #dddddd;\n\t--box-shadow: none;\n\t--select: #a7f3d0;\n\t--greenBtn: #22c55e;\n\t--greenBtn-bottom: #16a34a;\n\t--redBtn: #d64d4f;\n\t--redBtn-bottom: #854243;\n\t--blueBtn: #3b82f6;\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n\n:root[theme=\"dark\"] {\n\t--background: #121212;\n\t--text: rgb(229, 229, 229);\n\t--box-main: #1d1d1d;\n\t--box-toggle: #191919;\n\t--box-separation: #2e2e2e;\n\t--box-toggleOn: #2e2e2e;\n\t--item-bg: #2c2e31;\n\t--box-shadow: none;\n\t--select: #252426;\n\t--greenBtn: #05aa76;\n\t--greenBtn-bottom: #047652;\n\t--redBtn: #c82b2d;\n\t--redBtn-bottom: #803334;\n\t--blueBtn: rgb(80, 140, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n\t--border: none;\n}\n\n:root[theme=\"frappe\"] {\n\t--background: #232634;\n\t--text: #e2e8ff;\n\t--box-main: #303446;\n\t--box-toggle: #414559;\n\t--box-separation: #414559;\n\t--box-toggleOn: #607dc1;\n\t--item-bg: #414559;\n\t--select: #3b3e4a;\n\t--greenBtn: #78c346;\n\t--greenBtn-bottom: #597844;\n\t--redBtn: #d64d4f;\n\t--redBtn-bottom: #854243;\n\t--blueBtn: rgb(80, 128, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n:root[theme=\"onedark\"] {\n\t--background: #282c34;\n\t--text: #d2d6df;\n\t--box-main: #3a3d46;\n\t--box-toggle: #2f333d;\n\t--box-separation: #2f333d;\n\t--box-toggleOn: #13a3b7;\n\t--item-bg: #4d515d;\n\t--select: #262c33;\n\t--greenBtn: #85cf50;\n\t--greenBtn-bottom: #406923;\n\t--redBtn: #be2d39;\n\t--redBtn-bottom: #791a22;\n\t--blueBtn: rgb(80, 128, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n:root[theme=\"matrix\"] {\n\t--background: #0d0208;\n\t--text: #00ff41;\n\t--box-main: #0c2216;\n\t--box-toggle: #214338;\n\t--box-separation: #214338;\n\t--box-toggleOn: #24782e;\n\t--item-bg: #214338;\n\t--select: #08180f;\n\t--greenBtn: #19b42b;\n\t--greenBtn-bottom: #10701c;\n\t--redBtn: #19b42b;\n\t--redBtn-bottom: #10701c;\n\t--blueBtn: #19b42b;\n\t--blueBtn-bottom: #10701c;\n}\n\n:root[theme=\"github\"] {\n\t--background: #f6f8fa;\n\t--text: #292d31;\n\t--box-main: #ffffff;\n\t--box-toggle: #f3f3f3;\n\t--box-separation: #f3f3f3;\n\t--box-toggleOn: #cce5ff;\n\t--item-bg: #3a66d150;\n\t--select: #cce5ff;\n\t--greenBtn: #0a9431;\n\t--greenBtn-bottom: #0c6826;\n\t--redBtn: #d73a49;\n\t--redBtn-bottom: #9b2733;\n\t--blueBtn: #005cc5;\n\t--blueBtn-bottom: #00428e;\n}\n\n:root[theme=\"latte\"] {\n\t--background: #dce0e8;\n\t--text: #4c4f69;\n\t--box-main: #eff1f5;\n\t--box-toggle: #e6e9ef;\n\t--box-separation: #e6e9ef;\n\t--box-toggleOn: #cce5ff;\n\t--item-bg: #bcc0cc;\n\t--select: #cce5ff;\n\t--greenBtn: #40a02b;\n\t--greenBtn-bottom: #2e711f;\n\t--redBtn: #d20f39;\n\t--redBtn-bottom: #9c0c2b;\n\t--blueBtn: #1e66f5;\n\t--blueBtn-bottom: rgb(3, 49, 101);\n}\n\n:root[theme=\"solarized-dark\"] {\n\t--background: #002b36;\n\t--text: #a4b1b3;\n\t--box-main: #003745;\n\t--box-toggle: #2e4c52;\n\t--box-separation: #2e4c52;\n\t--box-toggleOn: #005a6f;\n\t--item-bg: #003745;\n\t--select: rgb(9, 57, 53);\n\t--greenBtn: #859900;\n\t--greenBtn-bottom: rgb(73, 84, 1);\n\t--redBtn: #dc322f;\n\t--redBtn-bottom: #af2523;\n\t--blueBtn: #268bd2;\n\t--blueBtn-bottom: #2074b1;\n}\n:root[theme = \"gruvbox\"]{\n\t--background: #242424;\n\t--text: #fffefd;\n\t--box-main: #32302f;\n\t--box-toggle: #282828;\n\t--box-separation: #504945;\n\t--box-toggleOn: #458588;\n\t--item-bg: #4d515d;\n\t--select: #98971a;\n\t--greenBtn:#8ec07c;\n\t--greenBtn-bottom:#689D6A;\n\t--redBtn: #fb4934;\n\t--redBtn-bottom: #cc241d;\n\t--blueBtn: #7fa2ac;\n\t--blueBtn-bottom: #458588;\n\n}\n\nbody {\n\tbackground-color: var(--background);\n\tcolor: var(--text);\n\tpadding: 20px;\n\tfont-size: x-large;\n\ttext-align: left;\n\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\t\tRoboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\",\n\t\tsans-serif;\n}\nh1 {\n\tmargin-top: 0;\n\tdisplay: inline-block;\n}\n#version {\n\tmargin: 5px;\n}\ninput[type=\"text\"],\n.input {\n\tborder-radius: 5px;\n\tpadding: 5px;\n\toutline: none;\n\tborder: none;\n\twidth: 50%;\n\theight: 35px;\n\tfont-family: system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\t\tRoboto, Oxygen, Ubuntu, Cantarell, \"Open Sans\", \"Helvetica Neue\",\n\t\tsans-serif;\n}\n.input {\n\twidth: 70px;\n\tfont-size: larger;\n\tpadding: 5px;\n}\n\n.prefBox,\n#pathConfig {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tmargin: 15px 15px;\n\tpadding: 20px 15px;\n\tborder-radius: 15px;\n\tbackground-color: var(--box-main);\n}\n\n#ytDlpArgBox {\n\tmargin: 15px 15px;\n\tpadding: 20px 15px;\n\tborder-radius: 15px;\n\tbackground-color: var(--box-main);\n}\n#path {\n\tfont-family: \"JetBrains\";\n\tfont-size: medium;\n}\n\n#flatpakTxt {\n\tmargin: 0 15px;\n\tpadding: 20px 15px;\n\tcursor: pointer;\n\ttext-decoration: underline;\n\tcolor: var(--blueBtn);\n\tdisplay: none;\n}\n\n.prefBox {\n\tflex-direction: row;\n}\n#pathConfig {\n\tflex-direction: column;\n}\n.configBox {\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: space-between;\n\talign-items: center;\n\twidth: 100%;\n}\n#configBtn {\n\tdisplay: inline-block;\n}\n#configOpts {\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: center;\n\talign-items: center;\n}\n#save {\n\tpadding: 10px;\n\tborder-radius: 8px;\n\tborder: none;\n\tcolor: rgb(255, 255, 255);\n\tbackground-color: rgb(49, 215, 49);\n\tcursor: pointer;\n}\n#save:active {\n\tbackground-color: rgb(41, 155, 41);\n}\n#top {\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\tdisplay: flex;\n}\n#back,\n#restart {\n\ttext-decoration: none;\n\tpadding: 8px;\n\tborder-radius: 10px;\n\tmargin: 3px;\n\tfont-size: large;\n\tcursor: pointer;\n}\n#back {\n\tbackground-color: var(--blueBtn);\n\tcolor: white;\n}\n\n#restart {\n\tbackground-color: var(--redBtn);\n\tcolor: white;\n}\n.redBtn {\n\tbackground-color: var(--redBtn);\n\tcolor: white;\n\ttext-decoration: none;\n\tborder: none;\n\tmargin: 5px;\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tfont-size: medium;\n\tpadding: 5px;\n}\na {\n\tcolor: rgb(29, 140, 209);\n\tcursor: pointer;\n}\n\ninput[type=\"checkbox\"] {\n\twidth: 25px;\n\theight: 25px;\n}\n\n.greenBtn {\n\tpadding: 10px;\n\tmargin: 0 20px;\n\tborder: none;\n\tborder-radius: 10px;\n\tfont-size: large;\n\tcolor: white;\n\tbackground-color: var(--greenBtn);\n\tcursor: pointer;\n\tposition: relative;\n\toutline: none;\n}\n#selectLocation:active {\n\tborder-bottom: none;\n\ttop: 4px;\n\tmargin-bottom: 4px;\n}\nselect {\n\tpadding: 15px;\n\tbackground-color: var(--select);\n\tcolor: var(--text);\n\tborder: none;\n\tborder-radius: 8px;\n\tcursor: pointer;\n\tfont-size: large;\n\toutline: none;\n\tposition: relative;\n\twidth: 160px;\n}\n#browserInfo {\n\tcursor: pointer;\n}\n\n#configOpts {\n\tdisplay: none;\n}\n\nbody::-webkit-scrollbar {\n\twidth: 10px;\n}\nbody::-webkit-scrollbar-thumb {\n\tbackground: linear-gradient(rgb(110, 110, 110), rgb(77, 77, 77));\n\tborder-radius: 8px;\n}\n\n#proxyTxt:valid {\n\tborder: 2px solid var(--greenBtn);\n}\n\n#proxyTxt:invalid {\n\tborder: 2px solid var(--redBtn);\n}\n\n#customArgsInput {\n\tpadding: 8px;\n\twidth: 94%;\n\tmargin: auto;\n\toutline: none;\n\tfont-family: \"JetBrains\";\n\tborder-radius: 8px;\n\tresize: none;\n\toverflow: hidden;\n}\n\n.popup-container {\n\tposition: fixed;\n\tbottom: 30px;\n\tleft: 30px;\n\tz-index: 9999;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 12px;\n}\n\n.popup-item {\n\tdisplay: inline-block;\n\n\tcolor: #fff;\n\tpadding: 12px 24px;\n\tborder-radius: 8px;\n\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\tfont-weight: 600;\n\tfont-size: 15px;\n\n\topacity: 1;\n\ttransition: opacity 0.4s;\n}"
  },
  {
    "path": "assets/css/index.css",
    "content": "@font-face {\n\tfont-family: \"JetBrains\";\n\tsrc: url(\"../fonts/JetBrainsMono-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n\tfont-family: \"Ubuntu\";\n\tsrc: url(\"../fonts/Ubuntu-Regular.ttf\") format(\"truetype\");\n}\n\n@font-face {\n\tfont-family: \"Inter\";\n\tsrc: url(\"../fonts/Inter.ttf\") format(\"truetype\");\n}\n\n:root[theme=\"light\"] {\n\t--background: #f9fafb;\n\t--text: #1f2937;\n\t--box-main: #f3f4f6;\n\t--box-toggle: rgb(215 238 233);\n\t--box-separation: #e5e7eb;\n\t--box-toggleOn: rgb(127, 250, 172);\n\t--item-bg: #dddddd;\n\t--box-shadow: none;\n\t--select: #a7f3d0;\n\t--greenBtn: #22c55e;\n\t--greenBtn-bottom: #16a34a;\n\t--redBtn: #d64d4f;\n\t--redBtn-bottom: #854243;\n\t--blueBtn: #3b82f6;\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n\n:root[theme=\"dark\"] {\n\t--background: #121212;\n\t--text: rgb(229, 229, 229);\n\t--box-main: #1d1d1d;\n\t--box-toggle: #191919;\n\t--box-separation: #2e2e2e;\n\t--box-toggleOn: #2e2e2e;\n\t--item-bg: #2c2e31;\n\t--box-shadow: none;\n\t--select: #252426;\n\t--greenBtn: #05aa76;\n\t--greenBtn-bottom: #047652;\n\t--redBtn: #c82b2d;\n\t--redBtn-bottom: #803334;\n\t--blueBtn: rgb(80, 140, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n\t--border: none;\n}\n\n:root[theme=\"frappe\"] {\n\t--background: #232634;\n\t--text: #e2e8ff;\n\t--box-main: #303446;\n\t--box-toggle: #414559;\n\t--box-separation: #414559;\n\t--box-toggleOn: #607dc1;\n\t--item-bg: #414559;\n\t--select: #3b3e4a;\n\t--greenBtn: #78c346;\n\t--greenBtn-bottom: #597844;\n\t--redBtn: #d64d4f;\n\t--redBtn-bottom: #854243;\n\t--blueBtn: rgb(80, 128, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n:root[theme=\"onedark\"] {\n\t--background: #282c34;\n\t--text: #d2d6df;\n\t--box-main: #3a3d46;\n\t--box-toggle: #2f333d;\n\t--box-separation: #2f333d;\n\t--box-toggleOn: #13a3b7;\n\t--item-bg: #4d515d;\n\t--select: #262c33;\n\t--greenBtn: #85cf50;\n\t--greenBtn-bottom: #406923;\n\t--redBtn: #be2d39;\n\t--redBtn-bottom: #791a22;\n\t--blueBtn: rgb(80, 128, 230);\n\t--blueBtn-bottom: rgb(44, 78, 180);\n}\n:root[theme=\"matrix\"] {\n\t--background: #0d0208;\n\t--text: #00ff41;\n\t--box-main: #0c2216;\n\t--box-toggle: #214338;\n\t--box-separation: #214338;\n\t--box-toggleOn: #24782e;\n\t--item-bg: #214338;\n\t--select: #08180f;\n\t--greenBtn: #19b42b;\n\t--greenBtn-bottom: #10701c;\n\t--redBtn: #19b42b;\n\t--redBtn-bottom: #10701c;\n\t--blueBtn: #19b42b;\n\t--blueBtn-bottom: #10701c;\n}\n\n:root[theme=\"github\"] {\n\t--background: #f6f8fa;\n\t--text: #292d31;\n\t--box-main: #ffffff;\n\t--box-toggle: #f3f3f3;\n\t--box-separation: #f3f3f3;\n\t--box-toggleOn: #cce5ff;\n\t--item-bg: #3a66d150;\n\t--select: #cce5ff;\n\t--greenBtn: #0a9431;\n\t--greenBtn-bottom: #0c6826;\n\t--redBtn: #d73a49;\n\t--redBtn-bottom: #9b2733;\n\t--blueBtn: #005cc5;\n\t--blueBtn-bottom: #00428e;\n}\n\n:root[theme=\"latte\"] {\n\t--background: #dce0e8;\n\t--text: #4c4f69;\n\t--box-main: #eff1f5;\n\t--box-toggle: #e6e9ef;\n\t--box-separation: #e6e9ef;\n\t--box-toggleOn: #cce5ff;\n\t--item-bg: #bcc0cc;\n\t--select: #cce5ff;\n\t--greenBtn: #40a02b;\n\t--greenBtn-bottom: #2e711f;\n\t--redBtn: #d20f39;\n\t--redBtn-bottom: #9c0c2b;\n\t--blueBtn: #1e66f5;\n\t--blueBtn-bottom: rgb(3, 49, 101);\n}\n\n:root[theme=\"solarized-dark\"] {\n\t--background: #002b36;\n\t--text: #a4b1b3;\n\t--box-main: #003745;\n\t--box-toggle: #2e4c52;\n\t--box-separation: #2e4c52;\n\t--box-toggleOn: #005a6f;\n\t--item-bg: #003745;\n\t--select: rgb(9, 57, 53);\n\t--greenBtn: #859900;\n\t--greenBtn-bottom: rgb(73, 84, 1);\n\t--redBtn: #dc322f;\n\t--redBtn-bottom: #af2523;\n\t--blueBtn: #268bd2;\n\t--blueBtn-bottom: #2074b1;\n}\n:root[theme = \"gruvbox\"]{\n\t--background: #242424;\n\t--text: #fffefd;\n\t--box-main: #32302f;\n\t--box-toggle: #282828;\n\t--box-separation: #504945;\n\t--box-toggleOn: #458588;\n\t--item-bg: #eebd35;\n\t--select: #98971a;\n\t--greenBtn:#8ec07c;\n\t--greenBtn-bottom:#689D6A;\n\t--redBtn: #fb4934;\n\t--redBtn-bottom: #cc241d;\n\t--blueBtn: #7fa2ac;\n\t--blueBtn-bottom: #458588;\n\n}\n\nbody {\n\tfont-family: \"Ubuntu\";\n\ttext-align: center;\n\tpadding: 10px;\n\tbackground-color: var(--background);\n\tcolor: var(--text);\n\ttransition: 0.4s;\n\tfont-size: large;\n\tuser-select: none;\n}\n\nimg {\n\t-webkit-user-drag: none;\n}\n\n#popupBox,\n#popupBoxMac {\n\twidth: 100vw;\n\theight: 100vh;\n\tmargin: 0;\n\tbackground-color: rgba(17, 25, 40, 0.75);\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\tz-index: 2;\n\tdisplay: none;\n}\n#popup,\n#popupMac {\n\tposition: absolute;\n\tpadding: 20px;\n\ttop: 50%;\n\tleft: 50%;\n\twidth: 300px;\n\tborder-radius: 10px;\n\ttransform: translate(-50%, -50%);\n\tbackground-color: rgb(91, 91, 91);\n\tcolor: white;\n}\n\n#tryBtn {\n\tbackground-color: rgb(137, 226, 255);\n\tcolor: rgb(35, 35, 35);\n\tborder: none;\n\tpadding: 10px;\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tposition: relative;\n}\n#tryBtn:active {\n\tborder: none;\n}\n\n#menuIcon {\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\twidth: 40px;\n\theight: 40px;\n\tcursor: pointer;\n\ttransition: 0.3s;\n}\n\n#menu {\n\tdisplay: none;\n\tflex-direction: column;\n\tbackdrop-filter: blur(18px) saturate(180%);\n\t-webkit-backdrop-filter: blur(18px) saturate(180%);\n\tbackground: rgba(15, 23, 42, 0.85);\n\tborder: 1px solid rgba(255, 255, 255, 0.08);\n\tborder-radius: 16px;\n\tposition: absolute;\n\ttop: 45px;\n\tright: 50px;\n\tpadding: 12px;\n\twidth: 220px;\n\tbox-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);\n\ttext-align: left;\n\tfont-family: \"Inter\", sans-serif;\n\tfont-size: medium;\n\tcolor: #e2e8f0;\n\tz-index: 2;\n\tanimation: fadeIn 0.25s ease-out;\n}\n\n.menuItem {\n\tcursor: pointer;\n\tpadding: 10px 12px;\n\tborder-radius: 8px;\n\tmargin-bottom: 6px;\n\ttext-decoration: none;\n\tcolor: #d6dadf;\n\ttransition: all 0.15s ease-in-out;\n\tborder-bottom: none;\n\tbackground: rgba(25, 37, 66, 0.223);\n}\n\n.menuItem:hover {\n\tbackground: rgba(255, 255, 255, 0.08);\n\tcolor: #38bdf8;\n\ttransform: translateX(2px);\n}\n\n.menuDivider {\n\theight: 1px;\n\tbackground: rgba(255, 255, 255, 0.08);\n\tmargin: 4px 0;\n}\n\n.menuLabel {\n\tmargin-top: 5px;\n\tfont-size: 0.9rem;\n\tcolor: #94a3b8;\n\tpadding: 4px 0;\n}\n\n.themeSelect {\n\tmargin-top: 4px;\n\tbackground: rgba(30, 41, 59, 0.9);\n\tcolor: #f8fafc;\n\tborder: 1px solid rgba(255, 255, 255, 0.15);\n\tborder-radius: 8px;\n\tpadding: 8px;\n\tfont-family: \"Inter\", sans-serif;\n\ttransition: border 0.2s, background 0.2s;\n\twidth: 100%;\n\tcursor: pointer;\n}\n\n.themeSelect:hover,\n.themeSelect:focus {\n\tborder-color: #38bdf8;\n\tbackground: rgba(51, 65, 85, 0.9);\n\toutline: none;\n}\n\n@keyframes fadeIn {\n\tfrom {\n\t\topacity: 0;\n\t\ttransform: translateY(-6px);\n\t}\n\tto {\n\t\topacity: 1;\n\t\ttransform: translateY(0);\n\t}\n}\n\n.item {\n\tdisplay: flex;\n\tposition: relative;\n\twidth: 86%;\n\tbackground-color: var(--item-bg);\n\tcolor: var(--text);\n\tmargin: 10px auto;\n\tborder-radius: 10px;\n\tpadding: 10px;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n.playlistItem {\n\tdisplay: flex;\n\tposition: relative;\n\twidth: 94%;\n\theight: 25px;\n\tbackground-color: var(--item-bg);\n\tcolor: var(--text);\n\tpadding: 16px 25px;\n\tborder-radius: 15px;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmargin: 10px auto;\n}\n\n.itemIconBox {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n.itemIcon {\n\tmax-width: 160px;\n\tmax-height: 90px;\n\tborder-radius: 10px;\n\tmargin: 0 10px 0 0;\n}\n\n.title {\n\tpadding: 12px 10px;\n\tborder-radius: 8px;\n\tmargin-left: 4px;\n\tborder: none;\n\toutline: none;\n\twidth: 50%;\n\ttext-align: center;\n\tbackground-color: var(--box-separation);\n\tcolor: var(--text);\n\tfont-size: large;\n\tfont-family: \"Ubuntu\";\n}\n\n.itemTitle {\n\tpadding: 5px;\n}\n.itemBody {\n\theight: 90%;\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n}\n.itemProgress {\n\tfont-weight: bold;\n\tcursor: pointer;\n\tpadding: 10px 0;\n}\n\n.custom-progress {\n    width: 90%;\n    height: 8px;\n    background: #e0e0e0;\n    border-radius: 6px;\n    overflow: hidden;\n\tdisplay:inline-block;\n}\n\n.custom-progress-fill {\n    width: 0%;\n    height: 100%;\n    background: var(--blueBtn);\n    transition: width 0.3s ease;\n    border-radius: 6px 0 0 6px;\n}\n\n\n.itemSpeed {\n\tpadding: 10px 5px 5px 5px;\n}\n.itemClose {\n\tposition: absolute;\n\ttop: 8px;\n\tright: 8px;\n\tcursor: pointer;\n\tcursor: pointer;\n\twidth: 20px;\n\theight: 20px;\n}\n.itemType {\n\tfont-style: italic;\n\tmargin-top: 5px;\n\tmargin: top 8px;\n}\n\n#closeHidden {\n\tbottom: 7px;\n\tposition: absolute;\n\tright: 10px;\n\tcursor: pointer;\n\tcursor: pointer;\n\twidth: 20px;\n\theight: 20px;\n}\n\n#hidden {\n\tdisplay: none;\n\tposition: absolute;\n\tz-index: 1;\n\tleft: 0;\n\tright: 0;\n\tmargin: auto;\n\ttop: 20%;\n\tbackground-color: var(--box-main);\n\tborder-radius: 15px;\n\twidth: 80%;\n\tpadding: 10px 10px 25px 10px;\n\tcolor: var(--text);\n\tborder: var(--border);\n}\n\n#videoBox,\n#audioBox {\n\tbackground-color: var(--box-toggle);\n\tpadding: 10px;\n\tborder-radius: 10px;\n}\n\n#audioExtract,\n.separationBox {\n\tmargin: 10px;\n\tpadding: 10px;\n\tbackground-color: var(--box-separation);\n\tborder-radius: 10px;\n}\n\n#options {\n\tdisplay: none;\n\tposition: absolute;\n\toverflow: hidden;\n\tz-index: 1;\n\tleft: 0;\n\tright: 0;\n\tmargin: auto;\n\ttop: 15%;\n\tbackground-color: var(--box-main);\n\twidth: 80%;\n\tborder-radius: 10px;\n\tpadding: 10px;\n\tcolor: var(--text);\n}\n\n#btnContainer {\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tpadding-top: 10px;\n}\n\n.toggleBtn {\n\twidth: 50%;\n\tfont-size: x-large;\n\tborder: var(--border);\n\tbackground-color: var(--box-toggle);\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tpadding: 8px;\n\tcolor: var(--text);\n}\n#videoToggle {\n\tbackground-color: var(--box-toggleOn);\n}\n\n.select {\n\tpadding: 12px 15px;\n\tbackground-color: var(--select);\n\tcolor: var(--text);\n\tborder: none;\n\tborder-radius: 12px;\n\tcursor: pointer;\n\tfont-size: large;\n\tmargin-bottom: 8px;\n\tmargin-left: 8px;\n\toutline: none;\n\tmax-width: min(400px, 100%);\n\tfont-family: \"JetBrains\";\n}\n\n.audioSelect {\n\twidth: 180px;\n}\n\n#videoTypeSelect {\n\twidth: 160px;\n}\n\n#audioQualitySelect {\n\twidth: 145px;\n}\n\n#link {\n\tpadding: 10px;\n}\n\n#videoFormatSelect,\n#audioFormatSelect,\n#audioForVideoFormatSelect {\n\tfont-family: JetBrains, monospace;\n\tfont-size: medium;\n\twidth: 400px;\n}\n\n.formatSelect {\n\tmargin-right: 4px;\n}\n\nlabel {\n\tposition: relative;\n\ttop: 3px;\n}\n\n#videoList,\n#audioList {\n\tdisplay: none;\n}\n\n.cb {\n\twidth: 20px;\n\theight: 20px;\n\tposition: relative;\n\tleft: 5px;\n\ttop: 4px;\n}\n\ninput[type=\"number\"]::-webkit-inner-spin-button,\ninput[type=\"number\"]::-webkit-outer-spin-button {\n\tappearance: none;\n}\n\n.submitBtn {\n\tpadding: 15px;\n\tborder-radius: 10px;\n\tbackground-color: var(--greenBtn);\n\tcolor: white;\n\tborder: none;\n\tfont-size: large;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\toutline: none;\n\tposition: relative;\n}\n.submitBtn:active {\n\tbackground-color: var(--greenBtn-bottom);\n\tborder: none;\n}\n\n#pasteUrl,\n#pasteLink {\n\t--greenTop: #34d399;\n\t--greenBottom: #059669;\n\t--greenHover: #10b981;\n\t--greenActive: #047857;\n\n\tbackground: linear-gradient(\n\t\tto bottom right,\n\t\tvar(--greenTop),\n\t\tvar(--greenBottom)\n\t);\n\tcolor: #fff;\n\tfont-size: 1.1rem;\n\tpadding: 16px 28px;\n\tborder: none;\n\tborder-radius: 16px;\n\tcursor: pointer;\n\toutline: none;\n\tposition: relative;\n\ttransition: all 0.25s ease;\n\tbox-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n\tmargin-top: 15px;\n\tfont-weight: bold;\n}\n\n#pasteUrl:hover,\n#pasteLink:hover {\n\tbackground: linear-gradient(\n\t\tto bottom right,\n\t\tvar(--greenHover),\n\t\tvar(--greenBottom)\n\t);\n\ttransform: translateY(-2px);\n}\n\n#pasteUrl:active,\n#pasteUrl.active,\n#pasteLink:active {\n\tbackground: linear-gradient(\n\t\tto bottom right,\n\t\tvar(--greenActive),\n\t\tvar(--greenBottom)\n\t);\n\ttransform: translateY(0);\n\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) inset;\n}\n\n.paste-keys {\n\tmargin-left: 4px;\n}\n\n.paste-keys .key {\n\tbackground: rgba(255, 255, 255, 0.128);\n\tborder-radius: 8px;\n\tpadding: 6px 10px;\n\tfont-size: 15px;\n\tfont-family: \"Inter\", sans-serif;\n\tcolor: #e5e5e5;\n\tmargin: 0 3px;\n\tborder-bottom: 3px solid rgba(2, 107, 72, 0.6);\n}\n\n.resumeBtn {\n\tpadding: 10px;\n\tborder-radius: 8px;\n\tbackground-color: rgb(64, 227, 64);\n\tcolor: white;\n\tborder: none;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\toutline: none;\n\tposition: absolute;\n\tright: 10px;\n\tbottom: 10px;\n\twidth: 100px;\n}\n\n.input {\n\tpadding: 8px;\n\tborder: none;\n\toutline: none;\n\tborder-radius: 5px;\n\twidth: 70px;\n\tfont-size: large;\n\tmargin: 5px;\n}\n\n#incorrectMsg,\n#incorrectMsgPlaylist {\n\tcolor: var(--redBtn);\n}\n\n#incorrectMsgPlaylist {\n\tdisplay: none;\n}\n\n#errorBtn {\n\tdisplay: none;\n}\n#errorDetails {\n\tcursor: pointer;\n\tfont-family: monospace;\n\tpadding: 15px;\n\tmargin: 10px 0;\n\tborder: 2px solid rgb(189, 0, 0);\n\tborder-radius: 8px;\n\tdisplay: none;\n\ttransition: 0.5s all;\n}\n#loadingWrapper {\n\t/* Default is flex */\n\tdisplay: none;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n}\n\n#preparingBox {\n\tdisplay: none;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n}\n\nsvg {\n\twidth: 100px;\n\theight: 100px;\n\tdisplay: inline-block;\n\tmargin-left: 20px;\n}\n\n.savedMsg {\n\tcolor: rgb(52, 170, 234);\n\tcursor: pointer;\n}\n#savedMsg {\n\tcursor: pointer;\n}\nbutton {\n\tfont-family: \"Ubuntu\";\n\tfont-weight: bold;\n\toutline: none;\n}\n\n#extractBtn,\n.blueBtn {\n\tcolor: white;\n\tbackground-color: var(--blueBtn);\n\tborder: none;\n\tposition: relative;\n\tpadding: 15px;\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tmargin: 8px;\n\tfont-size: large;\n\ttext-decoration: none;\n}\n\n#extractBtn {\n\twidth: 150px;\n}\n\n#download,\n#audioDownload {\n\twidth: 140px;\n}\n\n#clearBtn {\n\tdisplay: none;\n}\n\n#extractBtn:active,\n.blueBtn:active {\n\tbackground-color: var(--blueBtn-bottom);\n\tborder: none;\n}\n\n.advancedToggle {\n\tcolor: white;\n\tbackground-color: var(--redBtn);\n\tborder: none;\n\tposition: relative;\n\tpadding: 15px;\n\tborder-radius: 10px;\n\tcursor: pointer;\n\tmargin: 8px;\n\tfont-size: large;\n}\n\n.advancedToggle:active {\n\tbackground-color: var(--blueBtn-bottom);\n\tborder: none;\n}\n\n#advanced {\n\tdisplay: none;\n}\n.advancedItem {\n\tborder-radius: 15px;\n\tpadding: 20px;\n\tmargin: 10px;\n\tbackground-color: var(--item-bg);\n}\n\n#path {\n\tfont-family: \"JetBrains\";\n\tfont-size: medium;\n}\n\n#subHeader {\n\tfont-weight: bold;\n\tmargin-top: 0;\n}\n\nh2 {\n\tmargin: 12px;\n\tfont-size: 24px;\n}\n\n/* Scrollbar */\n\nbody::-webkit-scrollbar {\n\twidth: 5px;\n}\n\nbody::-webkit-scrollbar-track {\n\tbox-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n}\n\nbody::-webkit-scrollbar-thumb {\n\tbackground-color: rgb(79, 78, 78);\n\tborder-radius: 5px;\n}\n\n#goToTop {\n\tdisplay: none;\n\tposition: fixed;\n\tbottom: 10px;\n\tright: 10px;\n\tz-index: 2;\n\tborder: none;\n\toutline: none;\n\tbackground-image: url(../images/up-arrow.png);\n\tbackground-size: contain;\n\twidth: 40px;\n\theight: 40px;\n\tcursor: pointer;\n\tcolor: white;\n\tcursor: pointer;\n}\n\n.popup-container {\n\tposition: fixed;\n\tbottom: 30px;\n\tleft: 30px;\n\tz-index: 9999;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 12px;\n}\n\n.popup-item {\n\tdisplay: inline-block;\n\n\tcolor: #fff;\n\tpadding: 12px 24px;\n\tborder-radius: 8px;\n\tbox-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n\tfont-weight: 600;\n\tfont-size: 15px;\n\n\topacity: 1;\n\ttransition: opacity 0.4s;\n}\n\n.scale {\n\tanimation-name: scale;\n\tanimation-duration: 0.4s;\n\tanimation-fill-mode: forwards;\n}\n\n.scaleUp {\n\tanimation-name: scaleUp;\n\tanimation-duration: 0.4s;\n\tanimation-fill-mode: forwards;\n}\n\nbody::-webkit-scrollbar {\n\twidth: 10px;\n}\nbody::-webkit-scrollbar-thumb {\n\tbackground: linear-gradient(rgb(110, 110, 110), rgb(77, 77, 77));\n\tborder-radius: 8px;\n}\n\n@keyframes scale {\n\t0% {\n\t\tscale: 1;\n\t}\n\t100% {\n\t\tscale: 0;\n\t}\n}\n@keyframes scaleUp {\n\t0% {\n\t\tscale: 0;\n\t}\n\t100% {\n\t\tscale: 1;\n\t}\n}\n\n@media screen and (max-width: 650px) {\n\t.item {\n\t\twidth: 90%;\n\t}\n\t.title {\n\t\twidth: 80%;\n\t}\n}\n\n/* Compressor styles */\n#compressor-header {\n\ttext-align: center;\n\tmargin-top: 0;\n}\n\n.container {\n\tmax-width: 800px;\n\tmargin: 30px auto 10px auto;\n\tbackground: var(--box-main);\n\tpadding: 30px;\n\tborder-radius: 8px;\n\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.drop-zone {\n\tborder: 2px dashed #ccc;\n\tborder-radius: 8px;\n\tpadding: 2rem;\n\ttext-align: center;\n\tmargin-bottom: 2rem;\n\ttransition: border-color 0.3s ease;\n\tbackground: var(--box-toggle);\n}\n\n.drop-zone:hover {\n\tborder-color: #2196f3;\n\tcursor: pointer;\n}\n\n.compress-select {\n\tfont-family: \"Ubuntu\";\n\tpadding: 10px;\n}\n\n.drop-zone.dragover {\n\tborder-color: #2196f3;\n\tbackground-color: var(--box-toggleOn);\n}\n\n#settings-group-container {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: space-between;\n}\n\n.output-folder-conf {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n}\n\n#output-folder-box {\n\tbackground-color: var(--box-toggle);\n\tmargin-bottom: 12px;\n\tpadding: 15px;\n\tborder-radius: 8px;\n\ttext-align: left;\n}\n\n#output-folder-input {\n\twidth: 20px;\n\theight: 20px;\n\tmargin-left: 10px;\n}\n\n.folder-input-checkbox {\n\tdisplay: flex;\n\talign-items: center;\n}\n#output-suffix {\n\tcursor: text;\n}\n\n.settings-group {\n\tmargin-bottom: 10px;\n\tdisplay: flex;\n\tflex-direction: column;\n\twidth: 46%;\n}\n\n.compress-label {\n\tfont-family: \"Segoe UI\", Tahoma, Geneva, Verdana, sans-serif;\n\tdisplay: block;\n\tmargin-bottom: 10px;\n\tfont-weight: 500;\n\ttext-align: left;\n}\n\n#compression-status {\n\tmax-width: 800px;\n\tmargin: 20px auto 0 auto;\n\tborder-top: 1px solid var(--item-bg);\n\tpadding-top: 20px;\n}\n\n.status-item {\n\tpadding: 16px;\n\tmargin: 6px auto;\n\tborder-radius: 4px;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\tflex-direction: row;\n\tbackground-color: var(--item-bg);\n\tmax-width: 800px;\n}\n\n.status-item.success {\n\tcolor: var(--greenBtn);\n}\n\n.status-item.error {\n\tcolor: var(--redBtn);\n}\n\n.status {\n\tmin-width: 80px;\n\ttext-transform: uppercase;\n\tfont-size: 0.9em;\n\tfont-weight: bold;\n}\n\n.fileinput-btn {\n\tbackground: var(--blueBtn);\n\tcolor: white;\n\tpadding: 10px;\n\tdisplay: block;\n\tborder-radius: 5px;\n\tmargin: 5px 0 10px 0;\n\tcursor: pointer;\n\tborder: none;\n}\n\n.progressBarCompress {\n\twidth: 200px;\n}\n\n.nvidia_opt,\n.amf_opt,\n.qsv_opt,\n.vaapi_opt,\n.videotoolbox_opt {\n\tdisplay: none;\n}\n\n#custom-folder-select {\n\tpadding: 10px;\n\tmargin-left: 0;\n\tdisplay: none;\n}\n\n#custom-folder-path {\n\tfont-family: \"JetBrains\";\n\tbackground-color: var(--box-main);\n\tpadding: 8px;\n\tborder-radius: 4px;\n\tdisplay: none;\n}\n\n#selected-files {\n\tpadding-top: 10px;\n\topacity: 0.8;\n}\n\n::view-transition-old(root),\n::view-transition-new(root) {\n\tanimation: none;\n\tmix-blend-mode: normal;\n}\n\n@media (min-width: 640px) {\n\t.container {\n\t\tpadding: 2rem;\n\t}\n}\n\n.slider-wrapper {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: 1rem;\n}\n\n.time-display {\n\tflex-shrink: 0;\n\twidth: 5.5rem;\n\theight: 3rem;\n\tbackground-color: var(--box-main);\n\tcolor: var(--text);\n\tborder-radius: 0.5rem;\n\tfont-weight: 500;\n\tborder: none;\n\toutline: none;\n\ttext-align: center;\n\tfont-family: \"Inter\", sans-serif;\n\tfont-size: 1rem;\n\tpadding: 0;\n}\n\n.slider-container {\n\tposition: relative;\n\twidth: 100%;\n\theight: 2rem;\n\tdisplay: flex;\n\talign-items: center;\n}\n\n.track-background {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 0.25rem;\n\tbackground-color: #4b5563;\n\tborder-radius: 9999px;\n}\n\n#range-highlight {\n\tposition: absolute;\n\theight: 0.25rem;\n\tbackground-color: var(--blueBtn);\n\tborder-radius: 9999px;\n\tz-index: 1;\n}\n\ninput[type=\"range\"] {\n\t-webkit-appearance: none;\n\tappearance: none;\n\twidth: 100%;\n\theight: 4px;\n\tbackground: transparent;\n\toutline: none;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tpointer-events: none;\n}\n\n#min-slider {\n\tz-index: 2;\n}\n\n#max-slider {\n\tz-index: 3;\n}\n\ninput[type=\"range\"]::-webkit-slider-thumb {\n\t-webkit-appearance: none;\n\tappearance: none;\n\twidth: 12px;\n\theight: 32px;\n\tbackground-color: var(--blueBtn);\n\tborder-radius: 9999px;\n\tcursor: pointer;\n\tpointer-events: auto;\n\tmargin-top: -14px;\n\ttransition: transform 0.1s ease-in-out;\n\tposition: relative;\n}\n\ninput[type=\"range\"]::-webkit-slider-thumb:hover {\n\ttransform: scale(1.1);\n}\n\n#customArgsInput {\n\tpadding: 8px;\n\twidth: 94%;\n\tmargin: auto;\n\toutline: none;\n\tfont-family: \"JetBrains\";\n\tborder-radius: 8px;\n\tresize: vertical;\n}\n\n#updatePopup {\n\tposition: fixed;\n\tbottom: 30px;\n\tright: 30px;\n\tz-index: 9999;\n\tbackground-color: var(--box-separation);\n\tpadding: 15px 20px;\n\tborder-radius: 10px;\n\tdisplay: none;\n\n\tflex-direction: column;\n\talign-items: center;\n\tjustify-content: center;\n\tgap: 8px;\n\tbox-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);\n}\n\n.progress-track {\n\twidth: 200px;\n\theight: 8px;\n\tbackground-color: rgba(209, 209, 209, 0.446);\n\tborder-radius: 4px;\n\toverflow: hidden;\n\tmargin: 10px 2px;\n}\n\n#progressBarFill {\n\theight: 100%;\n\twidth: 0%;\n\tbackground-color: var(--greenBtn);\n\ttransition: width 0.2s ease;\n}\n\n.update-label,\n#updateProgress {\n\tfont-size: 14px;\n}\n"
  },
  {
    "path": "crowdin.yml",
    "content": "files:\n  - source: /translations/en.json\n    translation: /translations/%locale%.json\n"
  },
  {
    "path": "flatpak/io.github.aandrew_me.ytdn.desktop",
    "content": "[Desktop Entry]\nName=ytDownloader\nComment=Download videos and audios from YouTube and other sites\nExec=run.sh\nType=Application\nIcon=io.github.aandrew_me.ytdn\nCategories=Utility;\n"
  },
  {
    "path": "flatpak/io.github.aandrew_me.ytdn.metainfo.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<component type=\"desktop\">\n  <id>io.github.aandrew_me.ytdn</id>\n  <name>ytDownloader</name>\n  <launchable type=\"desktop-id\">io.github.aandrew_me.ytdn.desktop</launchable>\n  <developer id=\"io.github.aandrew_me\">\n    <name>Andrew</name>\n  </developer>\n  <url type=\"bugtracker\">https://github.com/aandrew-me/ytDownloader/issues</url>\n  <url type=\"translate\">\n    https://github.com/aandrew-me/ytDownloader?tab=readme-ov-file#internationalization-localization-</url>\n  <summary>Download videos and audios from hundreds of sites</summary>\n  <description>\n    <p>ytDownloader (Formerly know as Youtube Downloader Plus) lets you download videos and audios\n      of different qualities from hundreds of\n      sites including the popular ones but not limited to Youtube, Facebook, Instagram, Tiktok,\n      Twitter, Twitch and so on.</p>\n    <p>✔️ Supports high quality video resolutions</p>\n    <p>✔️ Video Compressor with Hardware Acceleration</p>\n    <p>✔️ Supports audio extraction in multiple formats</p>\n    <p>✔️ Supports playlist downloads</p>\n    <p>✔️ Supports downloading particular ranges</p>\n    <p>✔️ Supports downloading subtitles</p>\n    <p>✔️ Supports multiple themes</p>\n    <p>✔️ Completely free and open source</p>\n    <p>✔️ Fast download speeds</p>\n  </description>\n  <project_license>GPL-3.0</project_license>\n  <metadata_license>CC0-1.0</metadata_license>\n  <screenshots>\n    <screenshot type=\"default\">\n      <image>\n        https://github.com/user-attachments/assets/12410bca-31c3-48a0-bbd3-1d74bcc752b6\n      </image>\n      <caption>ytDownloader homepage</caption>\n    </screenshot>\n\n    <screenshot>\n      <image>\n        https://github.com/user-attachments/assets/060557bc-d209-4bd0-bda4-debe42ca83a0\n      </image>\n      <caption>ytDownloader Settings</caption>\n    </screenshot>\n\n    <screenshot>\n      <image>\n        https://github.com/user-attachments/assets/52da7e50-46bb-4749-8152-5e79324a6cc3\n      </image>\n      <caption>ytDownloader video compressor</caption>\n    </screenshot>\n\n  </screenshots>\n  <url type=\"homepage\">https://github.com/aandrew-me/ytDownloader</url>\n\n  <content_rating type=\"oars-1.1\" />\n\n  <releases>\n    <release version=\"3.20.2\" date=\"2025-11-27\">\n      <description>\n        <p>Bring back cookie related info</p>\n      </description>\n    </release>\n\n\n    <release version=\"3.20.0\" date=\"2025-11-22\">\n      <description>\n        <p>Added download history</p>\n        <p>Added JS runtime support as per new yt-dlp requirements. The app will now ship with a\n          nodejs binary. Youtube downloads should be more stable.</p>\n        <p>Added slider for range selection.</p>\n        <p>Added progress for yt-dlp download and update</p>\n        <p>Translation updates, added new languages.</p>\n        <p>Added custom built ffmpeg, ffprobe for Windows and Linux builds.</p>\n        <p>Added support to add custom yt-dlp arguments</p>\n        <p>Fixed incorrect resolution downloads for playlists.</p>\n        <p>Added showing approximate file sizes when possible.</p>\n        <p>Improved user interface.</p>\n        <p>Minor bug fixes.</p>\n        <p>Major code refactoring.</p>\n      </description>\n    </release>\n\n    <release version=\"3.19.2\" date=\"2025-09-06\">\n      <description>\n        <p>Improved app performance</p>\n        <p>UI improvements</p>\n        <p>Fixed minor bugs</p>\n      </description>\n    </release>\n    <release version=\"3.19.1\" date=\"2025-05-20\">\n      <description>\n        <p>Added support for chapters</p>\n        <p>UI improvements</p>\n      </description>\n    </release>\n    <release version=\"3.19.0\" date=\"2025-02-09\">\n      <description>\n        <p>Added Video Compressor with Hardware Acceleration (Beta)</p>\n        <p>Bug fixes</p>\n      </description>\n    </release>\n    <release version=\"3.18.5\" date=\"2024-11-29\">\n      <description>\n        <p>Bug fixes</p>\n      </description>\n    </release>\n    <release version=\"3.18.4\" date=\"2024-11-3\">\n      <description>\n        <p>Bug fixes</p>\n      </description>\n    </release>\n    <release version=\"3.18.3\" date=\"2024-10-10\">\n      <description>\n        <p>Fixes and enhancements</p>\n      </description>\n    </release>\n    <release version=\"3.18.2\" date=\"2024-8-25\">\n      <description>\n        <p>Design enhancements</p>\n        <p>Added removal of old windows updates</p>\n        <p>Ignore unavailable videos for playlists</p>\n        <p>Fixed issues with config file on resize</p>\n      </description>\n    </release>\n    <release version=\"3.18.0\" date=\"2024-6-02\">\n      <description>\n        <p>Added proxy support</p>\n        <p>Added button to clear downloads</p>\n        <p>Fixed download errors</p>\n        <p>Added compatibility for X(Twitter)</p>\n        <p>Minor enhancements</p>\n      </description>\n    </release>\n    <release version=\"3.17.4\" date=\"2024-4-21\">\n      <description>\n        <p>Added Chinese language</p>\n        <p>Fixed video trim info to filename</p>\n      </description>\n    </release>\n    <release version=\"3.17.3\" date=\"2024-3-03\">\n      <description>\n        <p>Fixed formats not being shown</p>\n        <p>Added Arabic language</p>\n      </description>\n    </release>\n    <release version=\"3.17.2\" date=\"2024-2-23\">\n      <description>\n        <p>Fixed conflicts with same filenames</p>\n        <p>Fixed formats not being selected properly</p>\n      </description>\n    </release>\n    <release version=\"3.17.1\" date=\"2024-1-27\">\n      <description>\n        <p>Fixed config file not being used when getting info</p>\n      </description>\n    </release>\n    <release version=\"3.17.0\" date=\"2024-1-27\">\n      <description>\n        <p>Changelog</p>\n        <ul>\n          <li>Added option to choose audio for video</li>\n          <li>Webm options will be hidden by default</li>\n          <li>Enhancements</li>\n        </ul>\n      </description>\n    </release>\n    <release version=\"3.16.1\" date=\"2023-12-26\" />\n    <release version=\"3.16.0\" date=\"2023-12-24\" />\n    <release version=\"3.15.1\" date=\"2023-11-26\" />\n    <release version=\"3.15.0\" date=\"2023-10-29\" />\n    <release version=\"3.14.3\" date=\"2023-10-21\" />\n    <release version=\"3.14.2\" date=\"2023-8-8\" />\n    <release version=\"3.14.1\" date=\"2023-6-11\" />\n    <release version=\"3.14.0\" date=\"2023-5-17\" />\n    <release version=\"3.13.0\" date=\"2023-4-25\" />\n    <release version=\"3.12.2\" date=\"2023-4-8\" />\n    <release version=\"3.12.1\" date=\"2023-3-24\" />\n    <release version=\"3.12.0\" date=\"2023-2-26\" />\n    <release version=\"3.11.0\" date=\"2023-1-30\" />\n    <release version=\"3.10.6\" date=\"2023-1-24\" />\n    <release version=\"3.10.5\" date=\"2023-1-22\" />\n    <release version=\"3.10.4\" date=\"2023-1-19\" />\n    <release version=\"3.10.3\" date=\"2023-1-16\" />\n    <release version=\"3.10.2\" date=\"2023-1-3\" />\n    <release version=\"3.10.1\" date=\"2022-12-26\" />\n    <release version=\"3.10.0\" date=\"2022-12-24\" />\n    <release version=\"3.9.0\" date=\"2022-11-27\" />\n    <release version=\"3.8.1\" date=\"2022-11-20\" />\n    <release version=\"3.8.0\" date=\"2022-11-12\" />\n    <release version=\"3.7.2\" date=\"2022-11-10\" />\n    <release version=\"3.7.1\" date=\"2022-11-1\" />\n    <release version=\"3.7.0\" date=\"2022-11-1\" />\n    <release version=\"3.6.3\" date=\"2022-10-27\" />\n    <release version=\"3.6.2\" date=\"2022-10-13\" />\n    <release version=\"3.6.1\" date=\"2022-10-03\" />\n    <release version=\"3.6.0\" date=\"2022-10-03\" />\n    <release version=\"3.5.3\" date=\"2022-09-23\" />\n    <release version=\"3.5.2\" date=\"2022-09-22\" />\n    <release version=\"3.5.1\" date=\"2022-09-18\" />\n    <release version=\"3.5.0\" date=\"2022-09-18\" />\n    <release version=\"3.4.0\" date=\"2022-09-14\" />\n    <release version=\"3.3.3\" date=\"2022-09-14\" />\n    <release version=\"3.3.2\" date=\"2022-09-13\" />\n    <release version=\"3.3.1\" date=\"2022-09-10\" />\n    <release version=\"3.3.0\" date=\"2022-09-8\" />\n    <release version=\"3.2.2\" date=\"2022-09-7\" />\n    <release version=\"3.2.1\" date=\"2022-09-6\" />\n    <release version=\"3.2.0\" date=\"2022-09-5\" />\n    <release version=\"3.1.0\" date=\"2022-08-31\" />\n    <release version=\"3.0.0\" date=\"2022-08-29\" />\n    <release version=\"2.1.2\" date=\"2022-08-28\" />\n    <release version=\"2.1.1\" date=\"2022-08-27\" />\n    <release version=\"2.1.0\" date=\"2022-08-27\" />\n    <release version=\"2.0.4\" date=\"2022-08-26\" />\n    <release version=\"2.0.3\" date=\"2022-08-23\" />\n    <release version=\"2.0.1\" date=\"2022-08-10\" />\n    <release version=\"2.0\" date=\"2022-08-05\" />\n  </releases>\n</component>"
  },
  {
    "path": "html/about.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title data-translate=\"about\">About</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/extra.css\">\n\n    <script src=\"../translations/i18n-init.js\" defer></script>\n</head>\n\n<body>\n    <div id=\"top\">\n        <a id=\"back\" data-translate=\"homepage\">Homepage</a>\n    </div>\n    <h1>ytDownloader </h1><span id=\"version\"></span>\n\n    <p id=\"txt1\" data-translate=\"appDescription\">ytDownloader lets you download videos and audios from hundreds of sites\n        like Youtube, Facebook,\n        Instagram, Tiktok, Twitter and so on</p>\n\n    <p id=\"txt2\" data-translate=\"aboutAppDescription\">It's a Free and Open Source app built on top of Node.js and\n        Electron. yt-dlp has been used for\n        downloading</p>\n\n    <span id=\"txt3\" data-translate=\"sourceCodeAvailable\">Source Code is available </span><a id=\"sourceLink\"\n        data-translate=\"here\">here</a>\n\n    <script>\n        const { ipcRenderer, shell } = require(\"electron\");\n\n\n        document.addEventListener('translations-loaded', () => {\n            window.i18n.translatePage();\n\n            const storageTheme = localStorage.getItem(\"theme\");\n            if (storageTheme) {\n                document.documentElement.setAttribute(\"theme\", storageTheme);\n            } else {\n                document.documentElement.setAttribute(\"theme\", \"frappe\");\n\n            }\n\n            ipcRenderer.send(\"get-version\");\n            ipcRenderer.once(\"version\", (event, version) => {\n                document.getElementById(\"version\").textContent = version;\n            });\n\n            document.getElementById(\"back\").addEventListener(\"click\", () => {\n                ipcRenderer.send(\"close-secondary\");\n            });\n\n            document.getElementById(\"sourceLink\").addEventListener(\"click\", () => {\n                shell.openExternal(\"https://github.com/aandrew-me/ytDownloader\");\n            });\n        });\n    </script>\n\n</body>\n\n</html>"
  },
  {
    "path": "html/compressor.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title data-translate=\"compressor\">Video Compressor</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/index.css\">\n    <script src=\"../translations/i18n-init.js\" defer></script>\n    <script src=\"../src/compressor.js\" defer></script>\n</head>\n\n<body id=\"compressor_body\">\n    <!-- Menu icon -->\n    <img src=\"../assets/images/menu.png\" alt=\"menu\" id=\"menuIcon\">\n\n    <!-- Menu -->\n    <div id=\"menu\" class=\"menu\">\n        <a id=\"homeWin\" class=\"menuItem\" data-translate=\"homepage\">Homepage</a>\n        <a id=\"playlistWin\" class=\"menuItem\" data-translate=\"downloadPlaylistButton\">Download Playlist</a>\n        <a id=\"preferenceWin\" class=\"menuItem\" data-translate=\"preferences\">Preferences</a>\n        <a id=\"historyWin\" class=\"menuItem\" data-translate=\"downloadHistory\">History</a>\n        <a id=\"aboutWin\" class=\"menuItem\" data-translate=\"about\">About</a>\n\n        <div class=\"menuDivider\"></div>\n\n        <label for=\"themeToggle\" id=\"themeTxt\" class=\"menuLabel\" data-translate=\"theme\">Theme</label>\n        <select name=\"themeToggle\" id=\"themeToggle\" class=\"themeSelect\">\n            <option id=\"lightTxt\" value=\"light\" data-translate=\"themeLight\">Light</option>\n            <option id=\"darkTxt\" value=\"dark\" data-translate=\"themeDark\">Dark</option>\n            <option id=\"frappeTxt\" value=\"frappe\" data-translate=\"themeFrappe\">Frappé</option>\n            <option id=\"onedarkTxt\" value=\"onedark\" data-translate=\"themeOneDark\">One dark</option>\n            <option id=\"matrixTxt\" value=\"matrix\" data-translate=\"themeMatrix\">Matrix</option>\n            <option id=\"githubTxt\" value=\"github\">Github</option>\n            <option id=\"latteTxt\" value=\"latte\">Latte</option>\n            <option id=\"solarizedDarkTxt\" value=\"solarized-dark\" data-translate=\"themeSolarizedDark\">Solarized Dark</option>\n            <option id=\"gruvboxTxt\" value=\"gruvbox\">Gruvbox</option>\n        </select>\n    </div>\n\n    <div class=\"container\">\n        <h1 id=\"compressor-header\" data-translate=\"compressor\">Video Compressor</h1>\n\n        <div class=\"drop-zone\">\n            <p data-translate=\"dragAndDropFiles\">Drag and drop file(s)</p>\n            <input type=\"file\" id=\"fileInput\" multiple hidden>\n            <label for=\"fileInput\" class=\"fileinput-btn\" data-translate=\"chooseFiles\">Choose File(s)</label>\n            <div id=\"selected-files\" data-translate=\"noFilesSelected\">No files selected</div>\n        </div>\n\n        <div id=\"settings-group-container\">\n            <div class=\"settings-group\">\n                <label class=\"compress-label\" for=\"extension\" data-translate=\"videoFormat\">Video format</label>\n                <select class=\"select compress-select\" id=\"file_extension\">\n                    <option value=\"unchanged\">Unchanged</option>\n                    <option value=\"mp4\">mp4</option>\n                    <option value=\"mkv\">mkv</option>\n                </select>\n            </div>\n\n            <div class=\"settings-group\">\n                <label class=\"compress-label\" for=\"encoder\" data-translate=\"videoEncoder\">Video Encoder</label>\n                <select class=\"select compress-select\" id=\"encoder\">\n                    <option value=\"x264\">x264</option>\n                    <option value=\"x265\">x265</option>\n                    <option class=\"qsv_opt\" value=\"qsv\">x264 (Intel QSV Hardware Acceleration)</option>\n                    <option class=\"qsv_opt\" value=\"hevc_qsv\">x265 (Intel QSV Hardware Acceleration)</option>\n                    <option class=\"amf_opt\" value=\"amf\">x264 (AMD Hardware Acceleration)</option>\n                    <option class=\"amf_opt\" value=\"hevc_amf\">x265 (AMD Hardware Acceleration)</option>\n                    <option class=\"nvidia_opt\" value=\"nvenc\">x264 (NVIDIA Hardware Acceleration)</option>\n                    <option class=\"nvidia_opt\" value=\"hevc_nvenc\">x265 (NVIDIA Hardware Acceleration)</option>\n                    <option class=\"vaapi_opt\" value=\"vaapi\">x264 (VA-API Hardware Acceleration)</option>\n                    <option class=\"vaapi_opt\" value=\"hevc_vaapi\">x265 (VA-API Hardware Acceleration)</option>\n                    <option class=\"videotoolbox_opt\" value=\"videotoolbox\">x264 (VideoToolbox Hardware Acceleration)\n                    </option>\n                    <option class=\"videotoolbox_opt\" value=\"hevc_videotoolbox\">x265 (VideoToolbox Hardware Acceleration)\n                    </option>\n                    <option value=\"copy\">Copy video</option>\n                </select>\n            </div>\n\n            <div class=\"settings-group\">\n                <label class=\"compress-label\" for=\"compression-speed\" data-translate=\"compressionSpeed\">Compression\n                    Speed</label>\n                <select class=\"select compress-select\" id=\"compression-speed\">\n                    <option value=\"fast\">Fast</option>\n                    <option selected value=\"medium\">Medium</option>\n                    <option value=\"slow\">Slow</option>\n                </select>\n            </div>\n\n            <div class=\"settings-group\">\n                <label class=\"compress-label\" for=\"video-quality\" data-translate=\"videoQuality\">Video Quality</label>\n                <select class=\"select compress-select\" id=\"video-quality\">\n                    <option value=\"18\">18 (Best quality)</option>\n                    <option value=\"19\">19</option>\n                    <option value=\"20\">20</option>\n                    <option value=\"21\">21</option>\n                    <option value=\"22\">22</option>\n                    <option selected value=\"23\">23 (Medium size, good quality)</option>\n                    <option value=\"24\">24</option>\n                    <option value=\"25\">25</option>\n                    <option value=\"26\">26</option>\n                    <option value=\"27\">27</option>\n                    <option value=\"28\">28 (Smaller file size, decent quality)</option>\n                    <option value=\"29\">29</option>\n                    <option value=\"30\">30</option>\n                    <option value=\"31\">31</option>\n                    <option value=\"32\">32</option>\n                    <option value=\"33\">33</option>\n                    <option value=\"34\">34</option>\n                    <option value=\"35\">35</option>\n                    <option value=\"36\">36</option>\n                    <option value=\"37\">37</option>\n                    <option value=\"38\">38</option>\n                    <option value=\"39\">39</option>\n                    <option value=\"40\">40</option>\n                    <option value=\"41\">41</option>\n                    <option value=\"42\">42</option>\n                    <option value=\"43\">43</option>\n                    <option value=\"44\">44</option>\n                    <option value=\"45\">45</option>\n                    <option value=\"46\">46</option>\n                    <option value=\"47\">47</option>\n                    <option value=\"48\">48</option>\n                    <option value=\"49\">49</option>\n                    <option value=\"50\">50</option>\n                    <option value=\"51\">51 (Worst quality)</option>\n                </select>\n\n            </div>\n\n            <div class=\"settings-group\">\n                <label class=\"compress-label\" for=\"audio-format\" data-translate=\"audioFormat\">Audio Format</label>\n                <select class=\"select compress-select\" id=\"audio-format\">\n                    <option value=\"copy\">Unchanged</option>\n                    <option value=\"aac\">aac</option>\n                    <option value=\"mp3\">mp3</option>\n                </select>\n            </div>\n\n            <div class=\"settings-group\">\n                <div class=\"compress-label\" data-translate=\"outputSuffix\">Output suffix</div>\n                <input type=\"text\" name=\"suffix\" id=\"output-suffix\" class=\"select compress-select\"\n                    placeholder=\"No suffix needs different output folder\" value=\"_compressed\">\n            </div>\n        </div>\n\n        <div id=\"output-folder-box\">\n            <div class=\"output-folder-conf\">\n                <span class=\"compress-label\" data-translate=\"outputInSameFolder\">Output in same folder</span>\n                <input checked type=\"checkbox\" name=\"output-folder\" id=\"output-folder-input\">\n\n            </div>\n            <div class=\"output-folder-conf\">\n                <button class=\"blueBtn\" id=\"custom-folder-select\" data-translate=\"selectCustomFolder\">Select Custom\n                    Folder</button>\n                <span id=\"custom-folder-path\"></span>\n            </div>\n        </div>\n\n        <div class=\"button-group\">\n            <button class=\"blueBtn\" id=\"compress-btn\" data-translate=\"startCompression\">Start Compression</button>\n            <button class=\"advancedToggle\" id=\"cancel-btn\" data-translate=\"cancel\">Cancel</button>\n        </div>\n\n    </div>\n\n    <div id=\"compression-status\"></div>\n    </div>\n\n</body>\n\n</html>"
  },
  {
    "path": "html/history.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Download History - YtDownloader</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/index.css\">\n    <style>\n        .history-container {\n            padding: 20px;\n            max-width: 1200px;\n            margin: 0 auto;\n        }\n\n        .history-header {\n            display: flex;\n            justify-content: space-between;\n            align-items: center;\n            margin-bottom: 25px;\n            flex-wrap: wrap;\n            gap: 15px;\n        }\n\n        .history-header h1 {\n            margin: 0;\n            font-size: 32px;\n            font-weight: 700;\n            color: var(--text);\n        }\n\n        .history-controls {\n            display: flex;\n            gap: 12px;\n            flex-wrap: wrap;\n            align-items: center;\n            margin-bottom: 25px;\n        }\n\n        .search-box {\n            padding: 10px 15px;\n            border: 2px solid var(--box-toggle, #3a3a3a);\n            border-radius: 6px;\n            background: var(--box-main, #2a2a2a);\n            color: var(--text, #fff);\n            width: 300px;\n            font-size: 14px;\n            transition: border-color 0.3s ease;\n        }\n\n        .search-box:focus {\n            outline: none;\n            border-color: var(--select, #54abde);\n        }\n\n        .filter-select {\n            padding: 10px 15px;\n            border: 2px solid var(--box-toggle, #3a3a3a);\n            border-radius: 6px;\n            background: var(--box-main, #2a2a2a);\n            color: var(--text, #fff);\n            font-size: 14px;\n            cursor: pointer;\n            transition: border-color 0.3s ease;\n        }\n\n        .filter-select:focus {\n            outline: none;\n            border-color: var(--select, #54abde);\n        }\n\n        .history-stats {\n            display: grid;\n            grid-template-columns: repeat(3, 1fr);\n            gap: 20px;\n            margin-bottom: 30px;\n        }\n\n        .stat-card {\n            padding: 20px;\n            background: var(--box-main, #2a2a2a);\n            border-radius: 10px;\n            border: 2px solid var(--box-toggle, #3a3a3a);\n            display: flex;\n            flex-direction: column;\n            justify-content: center;\n            align-items: center;\n            text-align: center;\n            transition: all 0.3s ease;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n        }\n\n        .stat-card:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);\n        }\n\n        .stat-card h3 {\n            margin: 0 0 10px 0;\n            font-size: 13px;\n            opacity: 0.7;\n            font-weight: 600;\n            text-transform: uppercase;\n            letter-spacing: 0.5px;\n            color: var(--text);\n        }\n\n        .stat-card .value {\n            font-size: 24px;\n            font-weight: bold;\n            color: var(--text);\n            word-break: break-word;\n        }\n\n        .history-list {\n            display: flex;\n            flex-direction: column;\n            gap: 10px;\n        }\n\n        .history-item {\n            display: flex;\n            align-items: center;\n            padding: 18px;\n            background: var(--item-bg, #2a2a2a);\n            border-radius: 10px;\n            border: 2px solid var(--box-toggle, #3a3a3a);\n            transition: all 0.3s ease;\n            cursor: pointer;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n            gap: 15px;\n        }\n\n        .history-item:hover {\n            transform: translateX(5px);\n            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n            border-color: var(--select, #54abde);\n        }\n\n        .history-item-thumbnail {\n            width: 80px;\n            height: 80px;\n            background: var(--box-toggle, #ddd);\n            border-radius: 8px;\n            object-fit: cover;\n            flex-shrink: 0;\n        }\n\n        .history-item-info {\n            flex: 1;\n            min-width: 0;\n            overflow: hidden;\n        }\n\n        .history-item-title {\n            font-weight: 600;\n            font-size: 16px;\n            margin-bottom: 8px;\n            overflow: hidden;\n            text-overflow: ellipsis;\n            color: var(--text);\n            display: -webkit-box;\n            -webkit-line-clamp: 2;\n            -webkit-box-orient: vertical;\n            line-height: 1.4;\n            text-align: left;\n        }\n\n        .history-item-meta {\n            display: flex;\n            gap: 18px;\n            font-size: 13px;\n            opacity: 0.7;\n            flex-wrap: wrap;\n            color: var(--text);\n            text-align: left;\n        }\n\n        .history-item-meta span {\n            white-space: nowrap;\n        }\n\n        .history-item-actions {\n            display: flex;\n            gap: 10px;\n            flex-shrink: 0;\n        }\n\n        .history-item-actions button {\n            padding: 8px 16px;\n            border: none;\n            border-radius: 6px;\n            background: var(--blueBtn, #54abde);\n            color: white;\n            cursor: pointer;\n            font-size: 13px;\n            font-weight: 600;\n            transition: all 0.3s ease;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n        }\n\n        .history-item-actions button:hover {\n            transform: scale(1.05);\n            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);\n        }\n\n        .history-item-actions button:active {\n            transform: scale(0.98);\n        }\n\n        .history-item-actions .delete-btn {\n            background: var(--redBtn, #ff6b6b);\n        }\n\n        .history-item-actions .delete-btn:hover {\n            background: var(--redBtn-bottom, #ff5252);\n        }\n\n        .empty-state {\n            text-align: center;\n            padding: 80px 20px;\n            color: var(--text, #666);\n        }\n\n        .empty-state-icon {\n            font-size: 64px;\n            margin-bottom: 20px;\n            opacity: 0.3;\n        }\n\n        .empty-state h2 {\n            color: var(--text);\n            margin-bottom: 10px;\n        }\n\n        .empty-state p {\n            color: var(--text);\n            opacity: 0.7;\n        }\n\n        .submitBtn {\n            padding: 10px 24px;\n            border: none;\n            border-radius: 8px;\n            background: var(--greenBtn, #4caf50);\n            color: white;\n            cursor: pointer;\n            font-size: 15px;\n            font-weight: 600;\n            transition: all 0.3s ease;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n        }\n\n        .submitBtn:hover {\n            background: var(--greenBtn-bottom, #45a049);\n            transform: translateY(-2px);\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n        }\n\n        .submitBtn:active {\n            transform: translateY(0);\n        }\n\n        .submitBtn.close-btn {\n            background: var(--redBtn, #ff6b6b);\n        }\n\n        .submitBtn.close-btn:hover {\n            background: var(--redBtn-bottom, #ff5252);\n        }\n\n        .action-buttons {\n            display: flex;\n            gap: 12px;\n            margin-bottom: 25px;\n            flex-wrap: wrap;\n        }\n\n        .action-buttons button {\n            padding: 12px 24px;\n            border: none;\n            border-radius: 8px;\n            background: var(--blueBtn, #54abde);\n            color: white;\n            cursor: pointer;\n            transition: all 0.3s ease;\n            font-size: 14px;\n            font-weight: 600;\n            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n        }\n\n        .action-buttons button:hover {\n            transform: translateY(-2px);\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);\n        }\n\n        .action-buttons button:active {\n            transform: translateY(0);\n        }\n\n        .action-buttons .danger-btn {\n            background: var(--redBtn, #ff6b6b);\n        }\n\n        .action-buttons .danger-btn:hover {\n            background: var(--redBtn-bottom, #ff5252);\n        }\n\n        @media (max-width: 768px) {\n            .history-stats {\n                grid-template-columns: 1fr;\n            }\n\n            .history-item {\n                flex-direction: column;\n                align-items: flex-start;\n                gap: 12px;\n            }\n\n            .history-item-thumbnail {\n                margin-right: 0;\n                margin-bottom: 0;\n                align-self: center;\n            }\n\n            .history-item-info {\n                width: 100%;\n            }\n\n            .history-item-title {\n                text-align: center;\n                white-space: normal;\n                word-break: break-word;\n            }\n\n            .history-item-meta {\n                justify-content: center;\n                text-align: center;\n            }\n\n            .history-item-actions {\n                margin-left: 0;\n                width: 100%;\n                justify-content: center;\n                flex-wrap: wrap;\n            }\n\n            .history-item-actions button {\n                flex: 1;\n                min-width: 100px;\n            }\n\n            .search-box {\n                width: 100%;\n            }\n\n            .filter-select {\n                width: 100%;\n            }\n\n            .history-header h1 {\n                font-size: 24px;\n            }\n\n            .action-buttons {\n                width: 100%;\n            }\n\n            .action-buttons button {\n                flex: 1;\n                min-width: 120px;\n            }\n        }\n\n        @media (max-width: 1024px) and (min-width: 769px) {\n            .history-item-title {\n                white-space: normal;\n                word-break: break-word;\n                max-width: 500px;\n            }\n        }\n\n        .popup-container {\n            position: fixed;\n            bottom: 30px;\n            left: 30px;\n            z-index: 9999;\n\n            display: flex;\n            flex-direction: column;\n            gap: 12px;\n        }\n\n        .popup-item {\n            display: inline-block;\n\n            color: #fff;\n            padding: 12px 24px;\n            border-radius: 8px;\n            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n            font-weight: 600;\n            font-size: 15px;\n\n            opacity: 1;\n            transition: opacity 0.4s;\n        }\n    </style>\n</head>\n\n\n<body>\n    <div class=\"history-container\">\n        <div class=\"history-header\">\n            <h1 id=\"historyTitle\" data-translate=\"downloadHistory\">Download History</h1>\n            <button id=\"closeBtn\" class=\"submitBtn close-btn\" onclick=\"window.close()\"\n                data-translate=\"close\">Close</button>\n        </div>\n\n        <div class=\"history-controls\">\n            <input type=\"text\" class=\"search-box\" id=\"searchBox\" placeholder=\"Search by title or URL...\"\n                data-translate-placeholder=\"searchByTitleOrUrl\">\n            <select class=\"filter-select\" id=\"formatFilter\">\n                <option value=\"\" data-translate=\"allFormats\">All Formats</option>\n                <option value=\"mp4\">MP4</option>\n                <option value=\"mp3\">MP3</option>\n                <option value=\"m4a\">M4A</option>\n                <option value=\"webm\">WEBM</option>\n                <option value=\"opus\">Opus</option>\n                <option value=\"wav\">WAV</option>\n                <option value=\"flac\">FLAC</option>\n            </select>\n        </div>\n\n        <div class=\"history-stats\" id=\"statsContainer\"></div>\n\n        <div class=\"action-buttons\">\n            <button id=\"exportJsonBtn\" onclick=\"exportHistoryJSON()\" data-translate=\"exportAsJson\">Export as\n                JSON</button>\n            <button id=\"exportCsvBtn\" onclick=\"exportHistoryCSV()\" data-translate=\"exportAsCsv\">Export as CSV</button>\n            <button id=\"clearAllBtn\" class=\"danger-btn\" onclick=\"clearAllHistory()\"\n                data-translate=\"clearAllHistory\">Clear All History</button>\n        </div>\n\n        <div id=\"historyListContainer\" class=\"history-list\"></div>\n    </div>\n\n    <div id=\"popupContainer\" class=\"popup-container\"></div>\n\n    <script src=\"../translations/i18n-init.js\"></script>\n\n    <script>\n        const { ipcRenderer } = require(\"electron\");\n\n        document.addEventListener('translations-loaded', () => {\n            window.i18n.translatePage();\n            document.title = window.i18n.__(\"downloadHistory\")\n        });\n\n        let allHistory = [];\n        let filteredHistory = [];\n\n        // Load history on page open\n        document.addEventListener(\"DOMContentLoaded\", () => {\n            loadTheme();\n            loadHistory();\n            setupEventListeners();\n        });\n\n        function loadTheme() {\n            const storageTheme = localStorage.getItem(\"theme\");\n            if (storageTheme) {\n                document.documentElement.setAttribute(\"theme\", storageTheme);\n            } else {\n                document.documentElement.setAttribute(\"theme\", \"frappe\");\n\n            }\n        }\n\n        function setupEventListeners() {\n            document.getElementById(\"searchBox\").addEventListener(\"input\", filterHistory);\n            document.getElementById(\"formatFilter\").addEventListener(\"change\", filterHistory);\n        }\n\n        function loadHistory() {\n            ipcRenderer.invoke(\"get-download-history\").then((history) => {\n                allHistory = history || [];\n                renderHistory(allHistory);\n                updateStats();\n            }).catch((error) => {\n                console.error(\"Failed to load history:\", error);\n                showPopup(\"Failed to load download history. Please try again.\", true);\n            });\n        }\n\n        function filterHistory() {\n            const searchTerm = document.getElementById(\"searchBox\").value;\n            const format = document.getElementById(\"formatFilter\").value;\n\n            filteredHistory = allHistory.filter((item) => {\n                const matchesSearch =\n                    !searchTerm ||\n                    item.title.toLowerCase().includes(searchTerm.toLowerCase()) ||\n                    item.url.toLowerCase().includes(searchTerm.toLowerCase());\n\n                const matchesFormat = !format || item.format.toLowerCase() === format.toLowerCase();\n\n                return matchesSearch && matchesFormat;\n            });\n\n            renderHistory(filteredHistory);\n        }\n\n        function renderHistory(historyItems) {\n            const container = document.getElementById(\"historyListContainer\");\n\n            // Clear container first\n            container.innerHTML = '';\n\n            if (historyItems.length === 0) {\n                const emptyState = document.createElement('div');\n                emptyState.className = 'empty-state';\n\n                const icon = document.createElement('div');\n                icon.className = 'empty-state-icon';\n                icon.textContent = '📭';\n\n                const heading = document.createElement('h2');\n                heading.textContent = 'No Downloads Yet';\n\n                const text = document.createElement('p');\n                text.textContent = 'Your download history will appear here';\n\n                emptyState.appendChild(icon);\n                emptyState.appendChild(heading);\n                emptyState.appendChild(text);\n                container.appendChild(emptyState);\n                return;\n            }\n\n\n            historyItems.forEach(item => {\n                const itemDiv = document.createElement('div');\n                itemDiv.className = 'history-item';\n                itemDiv.dataset.id = item.id;\n\n\n                const thumbnail = document.createElement(item.thumbnail ? 'img' : 'div');\n                thumbnail.className = 'history-item-thumbnail';\n                if (item.thumbnail) {\n                    thumbnail.src = item.thumbnail;\n                    thumbnail.alt = 'thumbnail';\n                }\n                itemDiv.appendChild(thumbnail);\n\n\n                const info = document.createElement('div');\n                info.className = 'history-item-info';\n\n\n                const title = document.createElement('div');\n                title.className = 'history-item-title';\n                title.title = item.title;\n                title.textContent = item.title;\n                info.appendChild(title);\n\n\n                const meta = document.createElement('div');\n                meta.className = 'history-item-meta';\n\n\n                const formatSpan = document.createElement('span');\n                formatSpan.textContent = 'Format: ';\n                const formatStrong = document.createElement('strong');\n                formatStrong.textContent = item.format;\n                formatSpan.appendChild(formatStrong);\n                meta.appendChild(formatSpan);\n\n\n                const sizeSpan = document.createElement('span');\n                sizeSpan.textContent = 'Size: ';\n                const sizeStrong = document.createElement('strong');\n                sizeStrong.textContent = formatFileSize(item.fileSize);\n                sizeSpan.appendChild(sizeStrong);\n                meta.appendChild(sizeSpan);\n\n\n                const dateSpan = document.createElement('span');\n                dateSpan.textContent = 'Date: ';\n                const dateStrong = document.createElement('strong');\n                dateStrong.textContent = new Date(item.downloadDate).toLocaleDateString();\n                dateSpan.appendChild(dateStrong);\n                meta.appendChild(dateSpan);\n\n\n                if (item.duration) {\n                    const durationSpan = document.createElement('span');\n                    durationSpan.textContent = 'Duration: ';\n                    const durationStrong = document.createElement('strong');\n                    durationStrong.textContent = formatDuration(item.duration);\n                    durationSpan.appendChild(durationStrong);\n                    meta.appendChild(durationSpan);\n                }\n\n                info.appendChild(meta);\n                itemDiv.appendChild(info);\n\n\n                const actions = document.createElement('div');\n                actions.className = 'history-item-actions';\n\n\n                const copyBtn = document.createElement('button');\n                copyBtn.className = 'copy-url-btn';\n                copyBtn.textContent = i18n.__('copyUrl');\n                copyBtn.addEventListener('click', () => copyToClipboard(item.url));\n                actions.appendChild(copyBtn);\n\n\n                const openBtn = document.createElement('button');\n                openBtn.className = 'open-file-btn';\n                openBtn.textContent = i18n.__('open');\n                openBtn.addEventListener('click', () => openFile(item.filePath));\n                actions.appendChild(openBtn);\n\n\n                const deleteBtn = document.createElement('button');\n                deleteBtn.className = 'delete-btn';\n                deleteBtn.textContent = i18n.__('delete');\n                deleteBtn.addEventListener('click', () => deleteHistoryItem(item.id));\n                actions.appendChild(deleteBtn);\n\n                itemDiv.appendChild(actions);\n                container.appendChild(itemDiv);\n            });\n        }\n\n        function updateStats() {\n            ipcRenderer.invoke(\"get-download-stats\").then((stats) => {\n                const statsContainer = document.getElementById(\"statsContainer\");\n                statsContainer.innerHTML = \"\";\n\n                const createStatCard = (title, value) => {\n                    const card = document.createElement(\"div\");\n                    card.className = \"stat-card\";\n\n                    const titleElement = document.createElement(\"h3\");\n                    titleElement.textContent = title;\n\n                    const valueElement = document.createElement(\"div\");\n                    valueElement.className = \"value\";\n                    valueElement.textContent = value;\n\n                    card.appendChild(titleElement);\n                    card.appendChild(valueElement);\n\n                    return card;\n                };\n\n                const mostCommonFormat = Object.keys(stats.byFormat).length > 0\n                    ? Object.entries(stats.byFormat).sort((a, b) => b[1] - a[1])[0][0].toUpperCase()\n                    : \"N/A\";\n\n                statsContainer.appendChild(createStatCard(i18n.__(\"totalDownloads\"), stats.totalDownloads));\n                statsContainer.appendChild(createStatCard(i18n.__(\"totalSize\"), formatFileSize(stats.totalSize)));\n                statsContainer.appendChild(createStatCard(i18n.__(\"mostCommonFormat\"), mostCommonFormat));\n\n            }).catch((error) => {\n                console.error(\"Failed to load stats:\", error);\n                const statsContainer = document.getElementById(\"statsContainer\");\n                // Clear any previous content\n                statsContainer.innerHTML = \"\";\n\n                // Helper function for creating placeholder cards\n                const createPlaceholderCard = (title) => {\n                    const card = document.createElement(\"div\");\n                    card.className = \"stat-card\";\n\n                    const titleElement = document.createElement(\"h3\");\n                    titleElement.textContent = title;\n\n                    const valueElement = document.createElement(\"div\");\n                    valueElement.className = \"value\";\n                    valueElement.textContent = \"--\";\n\n                    card.appendChild(titleElement);\n                    card.appendChild(valueElement);\n\n                    return card;\n                };\n\n                // Display placeholder stats on error\n                statsContainer.appendChild(createPlaceholderCard(\"Total Downloads\"));\n                statsContainer.appendChild(createPlaceholderCard(\"Total Size\"));\n                statsContainer.appendChild(createPlaceholderCard(\"Most Common Format\"));\n            });\n        }\n\n        function formatFileSize(bytes) {\n            if (bytes === 0) return \"0 B\";\n            const k = 1024;\n            const sizes = [\"B\", \"KB\", \"MB\", \"GB\"];\n            const i = Math.floor(Math.log(bytes) / Math.log(k));\n            return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + \" \" + sizes[i];\n        }\n\n        function formatDuration(seconds) {\n            const h = Math.floor(seconds / 3600);\n            const m = Math.floor((seconds % 3600) / 60);\n            const s = Math.floor(seconds % 60);\n            if (h > 0) return `${h}h ${m}m`;\n            if (m > 0) return `${m}m ${s}s`;\n            return `${s}s`;\n        }\n\n        function copyToClipboard(text) {\n            const { clipboard } = require(\"electron\");\n            clipboard.writeText(text);\n            showPopup(i18n.__(\"urlCopiedToClipboard\"));\n        }\n\n        function openFile(filePath) {\n            const result = ipcRenderer.invoke(\"show-file\", filePath).then(result => {\n                if (result.success === false) {\n                    showPopup(i18n.__(\"fileDoesNotExist\"), true)\n                }\n            })\n        }\n\n        function deleteHistoryItem(id) {\n            if (confirm(i18n.__(\"confirmDeleteHistoryItem\"))) {\n                ipcRenderer.invoke(\"delete-history-item\", id).then(() => {\n                    loadHistory();\n                    filterHistory();\n                }).catch((error) => {\n                    console.error(\"Failed to delete history item:\", error);\n                    showPopup(i18n.__(\"failedToDeleteHistoryItem\"), true);\n                });\n            }\n        }\n\n        function exportHistoryJSON() {\n            ipcRenderer.invoke(\"export-history-json\").then((data) => {\n                downloadFile(data, \"download_history.json\", \"application/json\");\n            }).catch((error) => {\n                console.error(\"Failed to export history as JSON:\", error);\n                showPopup(\"Failed to export history as JSON. Please try again.\", true);\n            });\n        }\n\n        function exportHistoryCSV() {\n            ipcRenderer.invoke(\"export-history-csv\").then((data) => {\n                downloadFile(data, \"download_history.csv\", \"text/csv\");\n            }).catch((error) => {\n                console.error(\"Failed to export history as CSV:\", error);\n                showPopup(\"Failed to export history as CSV. Please try again.\", true);\n            });\n        }\n\n        function downloadFile(content, filename, type) {\n            const element = document.createElement(\"a\");\n            element.setAttribute(\"href\", \"data:\" + type + \";charset=utf-8,\" + encodeURIComponent(content));\n            element.setAttribute(\"download\", filename);\n            element.style.display = \"none\";\n            document.body.appendChild(element);\n            element.click();\n            document.body.removeChild(element);\n        }\n\n        function clearAllHistory() {\n            if (\n                confirm(\n                    i18n.__(\"confirmClearAllHistory\")\n                )\n            ) {\n                ipcRenderer.invoke(\"clear-all-history\").then(() => {\n                    loadHistory();\n                    filterHistory();\n                }).catch((error) => {\n                    console.error(\"Failed to clear history:\", error);\n                    showPopup(\"Failed to clear history. Please try again.\", true);\n                });\n            }\n        }\n\n        function showPopup(text, isError = false) {\n            let popupContainer = document.getElementById(\"popupContainer\");\n\n            if (!popupContainer) {\n                popupContainer = document.createElement(\"div\");\n                popupContainer.id = \"popupContainer\";\n                popupContainer.className = \"popup-container\";\n                document.body.appendChild(popupContainer);\n            }\n\n            const popup = document.createElement(\"span\");\n            popup.textContent = text;\n            popup.classList.add(\"popup-item\");\n\n            popup.style.background = isError ? \"#ff6b6b\" : \"#54abde\";\n\n            if (isError) {\n                popup.classList.add(\"popup-error\");\n            }\n\n            popupContainer.appendChild(popup);\n\n            setTimeout(() => {\n                popup.style.opacity = \"0\";\n                setTimeout(() => {\n                    popup.remove();\n                    if (popupContainer.childElementCount === 0) {\n                        popupContainer.remove();\n                    }\n                }, 400);\n            }, 2200);\n        }\n    </script>\n</body>\n\n</html>"
  },
  {
    "path": "html/index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <header></header>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>YtDownloader</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/index.css\">\n\n    <script src=\"../translations/i18n-init.js\" defer></script>\n    <script src=\"../src/renderer.js\" defer></script>\n    <script src=\"../src/index.js\" defer></script>\n    <script src=\"../src/common.js\" defer></script>\n</head>\n\n<body>\n    <div id=\"popupBox\">\n        <div id=\"popup\">\n            <p data-translate=\"downloadingNecessaryFilesWait\">Please wait, necessary files are being downloaded</p>\n            <svg id=\"popupSvg\" version=\"1.1\" id=\"L4\" xmlns=\"http://www.w3.org/2000/svg\"\n                xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\" viewBox=\"0 0 100 100\"\n                enable-background=\"new 0 0 0 0\" xml:space=\"preserve\">\n                <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"6\" cy=\"50\" r=\"6\">\n                    <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.1\" />\n                </circle>\n                <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"26\" cy=\"50\" r=\"6\">\n                    <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.2\" />\n                </circle>\n                <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"46\" cy=\"50\" r=\"6\">\n                    <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.3\" />\n                </circle>\n            </svg>\n            <p id=\"ytDlpDownloadProgress\"></p>\n        </div>\n    </div>\n\n    <div id=\"popupBoxMac\">\n        <div id=\"popupMac\">\n            <p id=\"popupMacTxt\" data-translate=\"homebrewYtDlpWarning\">You need to download yt-dlp from homebrew first\n            </p>\n            <div style=\"display: flex;\">\n                <a class=\"blueBtn\" id=\"openHomebrew\" target=\"_blank\" href=\"https://formulae.brew.sh/formula/yt-dlp\"\n                    data-translate=\"openHomebrew\">Open Homebrew</a>\n                <button class=\"advancedToggle\" id=\"quitAppBtn\" data-translate=\"close\">Close</button>\n            </div>\n        </div>\n    </div>\n\n    <!-- Menu icon -->\n    <img src=\"../assets/images/menu.png\" alt=\"menu\" id=\"menuIcon\">\n\n    <!-- Menu -->\n    <div id=\"menu\" class=\"menu\">\n        <a id=\"playlistWin\" class=\"menuItem\" data-translate=\"downloadPlaylistButton\">Download Playlist</a>\n        <a id=\"preferenceWin\" class=\"menuItem\" data-translate=\"preferences\">Preferences</a>\n        <a id=\"compressorWin\" class=\"menuItem\" data-translate=\"compressor\">Compressor</a>\n        <a id=\"historyWin\" class=\"menuItem\" data-translate=\"downloadHistory\">History</a>\n        <a id=\"aboutWin\" class=\"menuItem\" data-translate=\"about\">About</a>\n\n        <div class=\"menuDivider\"></div>\n\n        <label for=\"themeToggle\" id=\"themeTxt\" class=\"menuLabel\" data-translate=\"theme\">Theme</label>\n        <select name=\"themeToggle\" id=\"themeToggle\" class=\"themeSelect\">\n            <option id=\"lightTxt\" value=\"light\" data-translate=\"themeLight\">Light</option>\n            <option id=\"darkTxt\" value=\"dark\" data-translate=\"themeDark\">Dark</option>\n            <option id=\"frappeTxt\" value=\"frappe\" data-translate=\"themeFrappe\">Frappé</option>\n            <option id=\"onedarkTxt\" value=\"onedark\" data-translate=\"themeOneDark\">One dark</option>\n            <option id=\"matrixTxt\" value=\"matrix\" data-translate=\"themeMatrix\">Matrix</option>\n            <option id=\"githubTxt\" value=\"github\">Github</option>\n            <option id=\"latteTxt\" value=\"latte\">Latte</option>\n            <option id=\"solarizedDarkTxt\" value=\"solarized-dark\" data-translate=\"themeSolarizedDark\">Solarized Dark</option>\n            <option id =\"guvboxTxt\" value=\"gruvbox\" data-translate=\"themeGruvbox\">gruvbox</option>\n        </select>\n    </div>\n\n\n    <button id=\"pasteUrl\">\n        <span id=\"pasteText\" data-translate=\"pasteText\">Click to paste video link from clipboard</span>\n        <span class=\"paste-keys\">\n            <span class=\"key\" id=\"pasteCtrlKey\">Ctrl</span><span class=\"key\">V</span>\n        </span>\n    </button>\n\n\n    <div id=\"loadingWrapper\">\n        <span id=\"processing\" data-translate=\"processing\">Loading </span>\n        <svg version=\"1.1\" id=\"L4\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\"\n            y=\"0px\" viewBox=\"0 0 100 100\" enable-background=\"new 0 0 0 0\" xml:space=\"preserve\">\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"6\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.1\" />\n            </circle>\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"26\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.2\" />\n            </circle>\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"46\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.3\" />\n            </circle>\n        </svg>\n    </div>\n    <p id=\"incorrectMsg\"></p>\n    <button class=\"advancedToggle\" id=\"errorBtn\" onclick=\"toggleErrorDetails()\" data-translate=\"errorDetails\">Error\n        Details ▼</button>\n    <div id=\"errorDetails\"></div>\n    <br>\n\n    <div id=\"hidden\">\n        <img src=\"../assets/images/close.png\" alt=\"close\" id=\"closeHidden\">\n        <div id=\"btnContainer\">\n            <button class=\"toggleBtn\" id=\"videoToggle\" data-translate=\"video\">Video</button>\n            <button class=\"toggleBtn\" id=\"audioToggle\" data-translate=\"audio\">Audio</button>\n        </div>\n        <p id=\"title\" data-translate=\"title\">Title </p>\n\n        <div class=\"videoAudioContainer\">\n            <!-- Video tab -->\n            <div id=\"videoList\">\n                <div class=\"separationBox\">\n                    <h2 id=\"videoHeader\" data-translate=\"video\">Video</h2>\n                    <label class=\"formatSelect\" data-translate=\"selectFormat\">Select Format </label>\n                    <select id=\"videoFormatSelect\" class=\"select\">\n                    </select>\n                    <br>\n                    <input type=\"hidden\" name=\"url\" class=\"url\" id=\"url\">\n\n                    <!-- Audio options for video -->\n                    <div id=\"audioForVideo\">\n                        <h2 id=\"audioHeader\" data-translate=\"audio\">Audio</h2>\n                        <label class=\"formatSelect\" data-translate=\"selectAudioFormat\">Select Audio Format </label>\n                        <select id=\"audioForVideoFormatSelect\" class=\"select\">\n                        </select>\n                        <br>\n                        <input type=\"hidden\" name=\"url\" class=\"url\">\n                    </div>\n                    <br>\n                </div>\n\n                <br>\n                <button class=\"submitBtn\" id=\"videoDownload\" data-translate=\"download\">Download</button>\n                <button id=\"advancedVideoToggle\" class=\"blueBtn\" onClick=\"advancedToggle()\"\n                    data-translate=\"moreOptions\">More options</button>\n            </div>\n\n            <!-- Audio tab -->\n            <div id=\"audioList\">\n                <div id=\"audioPresent\">\n                    <label class=\"formatSelect\" data-translate=\"selectFormat\">Select Format </label>\n                    <select id=\"audioFormatSelect\" class=\"select\">\n                    </select>\n                    <br>\n                    <input type=\"hidden\" name=\"url\" class=\"url\">\n                    <button class=\"submitBtn\" id=\"audioDownload\" data-translate=\"download\">Download</button>\n                    <button id=\"advancedAudioToggle\" class=\"blueBtn\" onClick=\"advancedToggle()\"\n                        data-translate=\"moreOptions\">More options</button>\n                </div>\n            </div>\n        </div>\n\n        <div id=\"advanced\">\n            <div class=\"advancedItem\">\n                <p id=\"customArgsHeader\" data-translate=\"customArgsTxt\">Custom yt-dlp arguments</p>\n                <textarea id=\"customArgsInput\" placeholder=\"--sponsorblock-remove all\"></textarea>\n            </div>\n            <div class=\"advancedItem\">\n                <span id=\"quitTxt\" data-translate=\"closeAppOnFinish\">Close app when download finishes</span>\n                <input type=\"checkbox\" id=\"quitChecked\" class=\"cb\">\n            </div>\n\n            <div class=\"advancedItem\">\n                <strong id=\"rangeText\" data-translate=\"downloadTimeRange\">Download particular time-range</strong>\n                <br><br>\n                <div class=\"slider-wrapper\">\n                    <input type=\"text\" id=\"min-time\" class=\"time-display\" value=\"0:00:00\">\n                    <div class=\"slider-container\">\n                        <div class=\"track-background\"></div>\n                        <div id=\"range-highlight\"></div>\n                        <input type=\"range\" id=\"min-slider\" min=\"0\" max=\"0\" value=\"0\">\n                        <input type=\"range\" id=\"max-slider\" min=\"0\" max=\"0\" value=\"0\">\n                    </div>\n                    <input type=\"text\" id=\"max-time\" class=\"time-display\" value=\"0:00:00\">\n                </div>\n            </div>\n\n            <div class=\"advancedItem\">\n                <div><span id=\"clText\" data-translate=\"currentDownloadLocation\">Current download location - </span><span\n                        id=\"path\"></span></div>\n                <br>\n                <button id=\"selectLocation\" class=\"submitBtn\" data-translate=\"selectDownloadLocation\">Select Download\n                    Location</button>\n            </div>\n\n            <div class=\"advancedItem\">\n                <p id=\"subHeader\" data-translate=\"subtitles\">Subtitles</p>\n                <span id=\"subTxt\" data-translate=\"downloadSubtitlesAvailable\">Download subtitles if available</span>\n                <input id=\"subChecked\" class=\"cb\" type=\"checkbox\">\n            </div>\n        </div>\n\n        <!-- Extraction options start -->\n        <div id=\"audioExtract\">\n            <h2 id=\"extractHeader\" data-translate=\"extractAudio\">Extract Audio</h2>\n            <div>\n                <div>\n                    <label class=\"formatSelect\" data-translate=\"selectFormat\">Select Format </label>\n                    <select id=\"extractSelection\" class=\"select audioSelect\">\n                        <option value=\"mp3\">Mp3</option>\n                        <option value=\"m4a\">M4a</option>\n                        <option value=\"opus\">Opus</option>\n                        <option value=\"wav\">Wav</option>\n                        <option value=\"alac\">Alac</option>\n                        <option value=\"flac\">Flac</option>\n                    </select>\n                </div>\n\n                <div>\n                    <label class=\"extractQualitySelect\" id=\"extractQualitySelectTxt\"\n                        data-translate=\"selectQuality\">Select\n                        Quality</label>\n                    <select id=\"extractQualitySelect\" class=\"select audioSelect\">\n                        <option id=\"extractQualityNormal\" value=\"5\" data-translate=\"qualityNormal\">Normal</option>\n                        <option id=\"extractQualityBest\" value=\"0\" data-translate=\"best\">Best</option>\n                        <option id=\"extractQualityGood\" value=\"2\" data-translate=\"qualityGood\">Good</option>\n                        <option id=\"extractQualityBad\" value=\"8\" data-translate=\"qualityBad\">Bad</option>\n                        <option id=\"extractQualityWorst\" value=\"10\" data-translate=\"qualityWorst\">Worst</option>\n                    </select>\n                </div>\n            </div>\n\n            <br>\n            <button id=\"extractBtn\" data-translate=\"extract\">Extract</button>\n        </div>\n        <!-- Extraction options end -->\n    </div>\n\n    <!-- Downloads list -->\n    <div id=\"list\"></div>\n\n    <button class=\"blueBtn\" id=\"clearBtn\" data-translate=\"clearDownloads\">Clear Downloads</button>\n\n    <div id=\"goToTop\"></div>\n\n    <script>\n        const os = require(\"os\")\n\n        if (os.platform() === \"darwin\") {\n            document.getElementById(\"pasteCtrlKey\").textContent = \"⌘\";\n        }\n    </script>\n\n    <div id=\"popupContainer\" class=\"popup-container\"></div>\n\n    <div id=\"updatePopup\">\n        <span class=\"update-label\" data-translate=\"downloadingUpdate\">Downloading update</span>\n\n        <div class=\"progress-track\">\n            <div id=\"progressBarFill\"></div>\n        </div>\n\n        <span id=\"updateProgress\">0.0%</span>\n    </div>\n</body>\n\n</html>"
  },
  {
    "path": "html/playlist.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title data-translate=\"downloadPlaylistButton\">Playlist download</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/index.css\">\n\n    <script src=\"../translations/i18n-init.js\" defer></script>\n    <script src=\"../src/playlist.js\" defer></script>\n    <script src=\"../src/common.js\" defer></script>\n\n    <style>\n        #playlistName {\n            padding: 30px;\n        }\n\n        #pasteLink {\n            margin-top: 15px;\n            font-weight: bold;\n        }\n\n        #openDownloads {\n            display: none;\n            position: relative;\n            bottom: 8px;\n        }\n\n        #audioBox {\n            display: none;\n        }\n\n        #advancedMenu {\n            display: none;\n        }\n    </style>\n</head>\n\n<body>\n    <!-- Menu icon -->\n    <img src=\"../assets/images/menu.png\" alt=\"menu\" id=\"menuIcon\">\n\n    <!-- Menu -->\n    <div id=\"menu\" class=\"menu\">\n        <a id=\"homeWin\" class=\"menuItem\" data-translate=\"homepage\">Homepage</a>\n        <a id=\"preferenceWin\" class=\"menuItem\" data-translate=\"preferences\">Preferences</a>\n        <a id=\"compressorWin\" class=\"menuItem\" data-translate=\"compressor\">Compressor</a>\n        <a id=\"historyWin\" class=\"menuItem\" data-translate=\"downloadHistory\">History</a>\n        <a id=\"aboutWin\" class=\"menuItem\" data-translate=\"about\">About</a>\n\n        <div class=\"menuDivider\"></div>\n\n        <label for=\"themeToggle\" id=\"themeTxt\" class=\"menuLabel\" data-translate=\"theme\">Theme</label>\n        <select name=\"themeToggle\" id=\"themeToggle\" class=\"themeSelect\">\n            <option id=\"lightTxt\" value=\"light\" data-translate=\"themeLight\">Light</option>\n            <option id=\"darkTxt\" value=\"dark\" data-translate=\"themeDark\">Dark</option>\n            <option id=\"frappeTxt\" value=\"frappe\" data-translate=\"themeFrappe\">Frappé</option>\n            <option id=\"onedarkTxt\" value=\"onedark\" data-translate=\"themeOneDark\">One dark</option>\n            <option id=\"matrixTxt\" value=\"matrix\" data-translate=\"themeMatrix\">Matrix</option>\n            <option id=\"githubTxt\" value=\"github\">Github</option>\n            <option id=\"latteTxt\" value=\"latte\">Latte</option>\n            <option id=\"solarizedDarkTxt\" value=\"solarized-dark\" data-translate=\"themeSolarizedDark\">Solarized Dark\n            </option>\n        </select>\n    </div>\n\n    <button id=\"pasteLink\">\n        <span id=\"pasteText\" data-translate=\"pastePlaylistLinkTooltip\">Click to paste playlist link from\n            clipboard</span>\n        <span class=\"paste-keys\">\n            <span class=\"key\" id=\"pasteCtrlKey\">Ctrl</span><span class=\"key\">V</span>\n        </span>\n    </button>\n\n    <div id=\"options\">\n        <img src=\"../assets/images/close.png\" alt=\"close\" id=\"closeHidden\">\n        <div id=\"btnContainer\">\n            <button class=\"toggleBtn\" id=\"videoToggle\" data-translate=\"video\">Video</button>\n            <button class=\"toggleBtn\" id=\"audioToggle\" data-translate=\"audio\">Audio</button>\n        </div>\n        <br>\n        <strong id=\"linkTitle\" data-translate=\"link\">Link:</strong>\n        <span id=\"link\"></span>\n        <br><br>\n        <div id=\"videoBox\">\n            <label id=\"videoFormat\" data-translate=\"videoQuality\">Select Video Quality </label>\n            <select id=\"select\" class=\"select\">\n                <option value=\"best\" id=\"bestVideoOption\" data-translate=\"best\">Best</option>\n                <option value=\"worst\" id=\"worstVideoOption\" data-translate=\"qualityWorst\">Worst</option>\n                <option value=\"useConfig\" id=\"useConfigTxt\" data-translate=\"useConfigFileCheckbox\">Use config file\n                </option>\n                <option value=\"144\">144p</option>\n                <option value=\"240\">240p</option>\n                <option value=\"360\">360p</option>\n                <option value=\"480\">480p</option>\n                <option value=\"720\">720p (HD)</option>\n                <option value=\"1080\">1080p (FHD)</option>\n                <option value=\"1440\">1440p</option>\n                <option value=\"2160\">2160p (4k)</option>\n            </select>\n            <br>\n            <div id=\"typeSelectBox\">\n                <label id=\"videoQualityTxt\" data-translate=\"selectVideoFormat\">Select video quality</label>\n                <select id=\"videoTypeSelect\" class=\"select\">\n                    <option value=\"auto\" id=\"autoTxt\" data-translate=\"auto\">Auto</option>\n                    <option value=\"mp4\">Mp4</option>\n                    <option value=\"webm\">WebM</option>\n                </select>\n            </div>\n            <br>\n            <button class=\"submitBtn\" id=\"download\" data-translate=\"download\">Download</button>\n            <br><br>\n        </div>\n\n        <div id=\"audioBox\">\n\n            <label id=\"audioFormat\" data-translate=\"selectAudioFormat\">Select Audio format </label>\n            <select id=\"audioSelect\" class=\"select\">\n                <option value=\"mp3\">Mp3</option>\n                <option value=\"m4a\">M4a</option>\n                <option value=\"opus\">Opus</option>\n                <option value=\"wav\">Wav</option>\n                <option value=\"alac\">Alac</option>\n                <option value=\"flac\">Flac</option>\n            </select>\n            <br>\n\n            <label class=\"audioQualitySelect\" id=\"audioQualitySelectTxt\" data-translate=\"selectQuality\">Select\n                Quality</label>\n            <select id=\"audioQualitySelect\" class=\"select\">\n                <option id=\"audioQualityAuto\" value=\"auto\" data-translate=\"auto\">Auto</option>\n                <option id=\"audioQualityNormal\" value=\"5\" data-translate=\"qualityNormal\">Normal</option>\n                <option id=\"audioQualityBest\" value=\"0\" data-translate=\"best\">Best</option>\n                <option id=\"audioQualityGood\" value=\"2\" data-translate=\"qualityGood\">Good</option>\n                <option id=\"audioQualityBad\" value=\"8\" data-translate=\"qualityBad\">Bad</option>\n                <option id=\"audioQualityWorst\" value=\"10\" data-translate=\"qualityWorst\">Worst</option>\n            </select>\n            <br><br>\n\n            <button class=\"submitBtn\" id=\"audioDownload\" data-translate=\"download\">Download</button>\n            <br><br>\n\n        </div>\n\n        <br>\n        <button id=\"advancedToggle\" class=\"blueBtn\" data-translate=\"moreOptions\">More options</button>\n        <br>\n\n        <!-- Hidden -->\n        <div id=\"advancedMenu\">\n            <div class=\"advancedItem\">\n                <span id=\"rangeTxt\" data-translate=\"playlistRange\">Playlist range</span>\n                <input type=\"number\" id=\"playlistIndex\" class=\"input\" data-translate-placeholder=\"start\" placeholder=\"Start\">:\n                <input type=\"number\" id=\"playlistEnd\" data-translate-placeholder=\"end\" class=\"input\" placeholder=\"End\">\n                <br><br>\n            </div>\n\n            <div class=\"advancedItem\">\n                <div><span id=\"clText\" data-translate=\"currentDownloadLocation\">Current download location - </span><span\n                        id=\"path\"></span></div>\n                <br>\n                <button id=\"selectLocation\" class=\"submitBtn\" data-translate=\"selectDownloadLocation\">Select Download\n                    Location</button>\n            </div>\n\n            <div class=\"advancedItem\">\n                <p id=\"subHeader\" data-translate=\"subtitles\">Subtitles</p>\n                <span id=\"subTxt\" data-translate=\"downloadSubtitlesAvailable\">Download subtitles if available</span>\n                <input id=\"subChecked\" class=\"cb\" type=\"checkbox\">\n            </div>\n            <br>\n\n            <button class=\"submitBtn\" id=\"downloadThumbnails\" data-translate=\"downloadThumbnails\">Download\n                thumbnails</button>\n            <button class=\"submitBtn\" id=\"saveLinks\" data-translate=\"saveVideoLinksToFile\">Save video links</button>\n        </div>\n\n        <p id=\"incorrectMsgPlaylist\"></p>\n        <!-- Error button -->\n        <button class=\"advancedToggle\" id=\"errorBtn\" onclick=\"toggleErrorDetails()\" data-translate=\"errorDetails\">Error\n            Details ▼</button>\n        <div id=\"errorDetails\"></div>\n\n    </div>\n\n    <h2 id=\"playlistName\"></h2>\n    <button class=\"submitBtn\" id=\"openDownloads\" data-translate=\"openDownloadFolder\">Open download folder</button>\n    <div id=\"list\">\n    </div>\n\n    <div id=\"goToTop\"></div>\n</body>\n\n</html>"
  },
  {
    "path": "html/playlist_new.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Playlist download</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/index.css\">\n    <script src=\"../src/playlist_new.js\" defer></script>\n    <script src=\"../src/common.js\" defer></script>\n    <!-- Translating -->\n    <script>window.i18n = new (require('../translations/i18n'));</script>\n    <style>\n        .playlistCheck {\n            position: absolute;\n            bottom: 8px;\n            right: 8px;\n            width: 25px;\n            height: 25px;\n        }\n    </style>\n</head>\n\n<body>\n    <!-- Popup message -->\n    <span id=\"popupText\">Text copied</span>\n\n    <!-- Menu icon -->\n    <img src=\"../assets/images/menu.png\" alt=\"menu\" id=\"menuIcon\">\n\n    <!-- Menu -->\n    <div id=\"menu\">\n        <a id=\"homeWin\" class=\"menuItem\">Homepage</a>\n        <a id=\"preferenceWin\" class=\"menuItem\">Preferences</a>\n        <a id=\"historyWin\" class=\"menuItem\">History</a>\n        <a id=\"aboutWin\" class=\"menuItem\">About</a>\n        <span id=\"themeTxt\" class=\"menuItem\">Theme:</span>\n        <select name=\"themeToggle\" id=\"themeToggle\">\n            <option id=\"lightTxt\" value=\"light\">Light</option>\n            <option id=\"darkTxt\" value=\"dark\">Dark</option>\n            <option id=\"frappeTxt\" value=\"frappe\">Frappé</option>\n            <option id=\"onedarkTxt\" value=\"onedark\">One dark</option>\n            <option id=\"matrixTxt\" value=\"matrix\">Matrix</option>\n            <option id=\"githubTxt\" value=\"github\">Github</option>\n            <option id=\"latteTxt\" value=\"latte\">Latte</option>\n            <option id=\"solarizedDarkTxt\" value=\"solarized-dark\">Solarized Dark</option>\n            <option id=\"gruvboxTxt\" value=\"gruvbox\">Gruvbox</option>\n        </select>\n    </div>\n\n    <button class=\"submitBtn\" id=\"pasteLink\">Click to paste playlist link from clipboard [Ctrl + V]</button>\n\n    <div id=\"loadingWrapper\">\n        <span id=\"processing\">Loading </span>\n        <svg version=\"1.1\" id=\"L4\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\"\n            y=\"0px\" viewBox=\"0 0 100 100\" enable-background=\"new 0 0 0 0\" xml:space=\"preserve\">\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"6\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.1\" />\n            </circle>\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"26\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.2\" />\n            </circle>\n            <circle fill=\"rgb(84, 171, 222)\" stroke=\"none\" cx=\"46\" cy=\"50\" r=\"6\">\n                <animate attributeName=\"opacity\" dur=\"1s\" values=\"0;1;0\" repeatCount=\"indefinite\" begin=\"0.3\" />\n            </circle>\n        </svg>\n    </div>\n\n    <p id=\"incorrectMsg\"></p>\n    <button class=\"advancedToggle\" id=\"errorBtn\" onclick=\"toggleErrorDetails()\">Error Details ▼</button>\n    <div id=\"errorDetails\" onclick=\"copyErrorToClipboard()\"></div>\n    <div id=\"data\">\n    </div>\n    <div id=\"goToTop\"></div>\n</body>\n\n</html>"
  },
  {
    "path": "html/preferences.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<head>\n    <meta charset=\"UTF-8\">\n    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title id=\"title\" data-translate=\"preferences\">Preferences</title>\n    <link rel=\"stylesheet\" href=\"../assets/css/extra.css\">\n\n    <script src=\"../translations/i18n-init.js\" defer></script>\n    <script src=\"../src/preferences.js\" defer></script>\n</head>\n\n<body>\n    <div id=\"top\">\n        <a id=\"restart\" data-translate=\"restartApp\">Restart app</a>\n        <a id=\"back\" data-translate=\"homepage\">Homepage</a>\n    </div>\n\n    <h1 id=\"preferences\" data-translate=\"preferences\">Preferences</h1>\n    <br><br>\n\n    <div class=\"prefBox\" style=\"border: none;\">\n        <strong id=\"dlText\" data-translate=\"downloadLocation\">Download location</strong>\n    </div>\n\n    <div class=\"prefBox\">\n        <span id=\"clText\" data-translate=\"currentDownloadLocation\">Current download location - </span><span\n            id=\"path\"></span>\n    </div>\n\n    <button id=\"selectLocation\" class=\"greenBtn\" data-translate=\"selectDownloadLocation\">Select Download\n        Location</button>\n\n    <p id=\"msg\">\n    </p>\n\n    <!-- Language -->\n    <div class=\"prefBox\">\n        <label id=\"selectLn\" data-translate=\"selectLanguageRelaunch\">Select Language (Requires reload)</label>\n        <select id=\"select\" onchange=\"changeLanguage()\">\n            <option value=\"en\">English</option>\n            <option value=\"de-DE\">Deutsch</option>\n            <option value=\"es-ES\">Español</option>\n            <option value=\"fa-IR\">فارسی</option>\n            <option value=\"el-GR\">Ελληνικά</option>\n            <option value=\"fr-FR\">Français</option>\n            <option value=\"it-IT\">Italiano</option>\n            <option value=\"ja-JP\">Japanese</option>\n            <option value=\"hu-HU\">Magyar</option>\n            <option value=\"pl-PL\">Polski</option>\n            <option value=\"pt-BR\">Português</option>\n            <option value=\"ru-RU\">Русский</option>\n            <option value=\"fi-FI\">Finnish</option>\n            <option value=\"uk-UA\">Українська</option>\n            <option value=\"tr-TR\">Türkçe</option>\n            <option value=\"vi-VN\">Vietnamese</option>\n            <option value=\"ar-SA\">اَلْعَرَبِيَّةُ</option>\n            <option value=\"zh-CN\">简体中文</option>\n            <option value=\"zh-TW\">繁體中文</option>\n            <option value=\"bn-BD\">বাংলা</option>\n            <option value=\"hi-IN\">हिन्दी</option>\n            <option value=\"ne-NP\">नेपाली</option>\n        </select>\n    </div>\n\n    <!-- Video Quality -->\n    <div class=\"prefBox\">\n        <span id=\"preferredVideoTxt\" data-translate=\"preferredVideoQuality\">Preferred video quality</span>\n        <select id=\"preferredVideoQuality\">\n            <option value=\"144\">144p</option>\n            <option value=\"240\">240p</option>\n            <option value=\"360\">360p</option>\n            <option value=\"480\">480p</option>\n            <option value=\"720\">720p (HD)</option>\n            <option value=\"1080\">1080p (FHD)</option>\n            <option value=\"1440\">1440p</option>\n            <option value=\"2160\">2160p (4k)</option>\n        </select>\n\n    </div>\n\n    <!-- Video Codec -->\n    <div class=\"prefBox\">\n        <span id=\"preferredVideoCodecTxt\" data-translate=\"preferredVideoCodec\">Preferred video codec</span>\n        <select id=\"preferredVideoCodec\">\n            <option value=\"avc1\">AVC1</option>\n            <option value=\"av01\">AV1</option>\n            <option value=\"vp9\">VP9</option>\n            <option value=\"mp4v\">MP4V</option>\n        </select>\n\n    </div>\n\n    <!-- Audio format -->\n    <div class=\"prefBox\">\n        <span id=\"preferredAudioTxt\" data-translate=\"preferredAudioFormat\">Preferred audio format</span>\n        <select id=\"preferredAudioQuality\">\n            <option value=\"mp3\">Mp3</option>\n            <option value=\"aac\">Aac</option>\n            <option value=\"m4a\">M4a</option>\n            <option value=\"opus\">Opus</option>\n            <option value=\"wav\">Wav</option>\n            <option value=\"alac\">Alac</option>\n            <option value=\"flac\">Flac</option>\n        </select>\n\n    </div>\n\n    <p id=\"flatpakTxt\" data-translate=\"flatsealPermissionWarning\"></p>\n    <div class=\"prefBox\">\n        <div>\n            <span id=\"browserTxt\" data-translate=\"selectBrowserForCookies\">Select browser to use cookies from</span>\n            <span id=\"browserInfo\" data-translate-title=\"cookiesWarning\"> &#9432;</span>\n        </div>\n        <select id=\"browser\">\n            <option value=\"\" id=\"none\" data-translate=\"none\">None</option>\n            <option value=\"chrome\">Chrome</option>\n            <option value=\"firefox\">Firefox</option>\n            <option value=\"brave\">Brave</option>\n            <option value=\"opera\">Opera Mini</option>\n            <option value=\"edge\">Edge</option>\n            <option value=\"chromium\">Chromium</option>\n            <option value=\"safari\">Safari</option>\n            <option value=\"vivaldi\">Vivaldi</option>\n        </select>\n    </div>\n\n    <div class=\"prefBox\">\n        <span id=\"proxyTitle\" data-translate=\"proxy\">Proxy</span>\n        <input type=\"text\" id=\"proxyTxt\" placeholder=\"http://localhost:8080\"\n            pattern=\"^(http:\\/\\/|https:\\/\\/|socks5:\\/\\/)?[a-zA-Z0-9.]+:[\\d]+$\">\n    </div>\n\n    <div id=\"ytDlpArgBox\">\n        <p>\n            <span data-translate=\"customArgsTxt\">Set custom yt-dlp arguments.</span>\n            <a data-translate=\"learnMore\" id=\"learnMoreLink\">Learn more</a>\n        </p>\n        <textarea spellcheck=\"false\" id=\"customArgsInput\" placeholder=\"--sponsorblock-remove all\"></textarea>\n    </div>\n\n    <div id=\"pathConfig\">\n\n        <div class=\"configBox\">\n            <span id=\"configTxt\" data-translate=\"useConfigFile\">Use configuration file</span>\n            <input type=\"checkbox\" class=\"cb\" id=\"configCheck\">\n        </div>\n\n        <div id=\"configOpts\">\n            <br>\n            <button class=\"greenBtn\" id=\"configBtn\" data-translate=\"selectConfigFile\">Select config file</button>\n            <br>\n            <strong id=\"configPathTxt\" data-translate=\"path\">Path:</strong>\n            <span id=\"configPath\"></span>\n        </div>\n    </div>\n\n    <div class=\"prefBox\">\n        <span id=\"showMoreFormatsTxt\" data-translate=\"showMoreFormatOptions\">Show more format options</span>\n        <input type=\"checkbox\" class=\"cb\" id=\"showMoreFormats\">\n    </div>\n\n    <div class=\"prefBox\">\n        <span id=\"fileFormatTxt\" data-translate=\"playlistFilenameFormat\">Filename format for playlists</span>\n        <input type=\"text\" id=\"filenameFormat\" placeholder=\"yt-dlp format style\"\n            value=\"%(playlist_index)s.%(title)s.%(ext)s\">\n        <button class=\"redBtn\" id=\"resetFilenameFormat\" data-translate=\"resetToDefault\">Reset to default</button>\n    </div>\n\n    <div class=\"prefBox\">\n        <span id=\"dirFormatTxt\" data-translate=\"playlistFolderNameFormat\">Folder name format for playlists</span>\n        <input type=\"text\" id=\"foldernameFormat\" value=\"%(playlist_title)s\" placeholder=\"yt-dlp format style\">\n        <button class=\"redBtn\" id=\"resetFoldernameFormat\" data-translate=\"resetToDefault\">Reset to default</button>\n    </div>\n\n\n    <div class=\"prefBox\">\n        <span id=\"maxTxt\" data-translate=\"maxActiveDownloads\">Maximum number of active downloads</span>\n        <input type=\"number\" min=\"1\" class=\"input\" id=\"maxDownloads\" value=\"5\">\n    </div>\n\n\n    <div class=\"prefBox\">\n        <span id=\"trayTxt\" data-translate=\"closeAppToTray\">Close to system tray</span>\n        <input type=\"checkbox\" class=\"cb\" id=\"closeToTray\">\n    </div>\n\n    <div class=\"prefBox\" id=\"autoUpdatesBox\">\n        <span id=\"autoUpdateTxt\" data-translate=\"disableAutoUpdates\">Disable auto updates</span>\n        <input type=\"checkbox\" class=\"cb\" id=\"autoUpdateDisabled\">\n    </div>\n</body>\n\n</html>"
  },
  {
    "path": "linux.sh",
    "content": "#!/bin/bash\n\n# >> Check if curl is installed or nor\nif ! command -V curl > /dev/null 2>&1; then\n    echo \"curl not installed, please install it and try again\"\n    exit\nfi\n\nwget \"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffmpeg_linux_amd64.tar.xz\"\nwget \"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/node_linux_amd64\" -O node\nchmod +x node\ntar -xf ffmpeg_linux_amd64.tar.xz\nmv ffmpeg_linux_amd64 ffmpeg\nchmod +x ffmpeg/bin/ffmpeg\nchmod +x ffmpeg/bin/ffprobe\nchmod +x ffmpeg/bin/ffplay\n\n"
  },
  {
    "path": "mac.sh",
    "content": "#!/bin/bash\n# >> Check if curl is installed or nor\nif ! command -v curl > /dev/null 2>&1; then\n    echo \"curl not installed, please install it and try again\"\n    exit 1\nfi\n\nARCH=$(uname -m)\nmkdir -p ffmpeg/bin\n\nif [ \"$ARCH\" = \"arm64\" ]; then\n    FF_URL=\"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffmpeg_macos_arm64\"\n    FP_URL=\"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffprobe_macos_arm64\"\nelif [ \"$ARCH\" = \"x86_64\" ]; then\n    FF_URL=\"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffmpeg_macos_amd64\"\n    FP_URL=\"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffprobe_macos_amd64\"\nelse\n    echo \"Unsupported architecture: $ARCH\"\n    exit 1\nfi\n\ncurl -L \"$FF_URL\" -o ffmpeg/bin/ffmpeg\ncurl -L \"$FP_URL\" -o ffmpeg/bin/ffprobe\nchmod +x ffmpeg/bin/ffmpeg\nchmod +x ffmpeg/bin/ffprobe\n"
  },
  {
    "path": "main.js",
    "content": "const {\n\tapp,\n\tBrowserWindow,\n\tdialog,\n\tipcMain,\n\tshell,\n\tTray,\n\tMenu,\n\tclipboard,\n} = require(\"electron\");\nconst {autoUpdater} = require(\"electron-updater\");\nconst fs = require(\"fs\").promises;\nconst {existsSync, readFileSync} = require(\"fs\");\nconst path = require(\"path\");\nconst DownloadHistory = require(\"./src/history\");\n\nprocess.env.ELECTRON_DISABLE_SECURITY_WARNINGS = \"true\";\nautoUpdater.autoDownload = false;\n\nconst USER_DATA_PATH = app.getPath(\"userData\");\nconst CONFIG_FILE_PATH = path.join(USER_DATA_PATH, \"ytdownloader.json\");\n\nconst appState = {\n\t/** @type {BrowserWindow | null} */\n\tmainWindow: null,\n\t/** @type {BrowserWindow | null} */\n\tsecondaryWindow: null,\n\t/** @type {Tray | null} */\n\ttray: null,\n\tisQuitting: false,\n\tindexPageIsOpen: true,\n\ttrayEnabled: false,\n\tloadedLanguage: {},\n\tconfig: {},\n\tdownloadHistory: new DownloadHistory(),\n\tautoUpdateEnabled: false,\n};\n\nconst gotTheLock = app.requestSingleInstanceLock();\n\nif (!gotTheLock) {\n\tapp.quit();\n} else {\n\tapp.on(\"second-instance\", () => {\n\t\tif (appState.mainWindow) {\n\t\t\tif (appState.mainWindow.isMinimized())\n\t\t\t\tappState.mainWindow.restore();\n\t\t\tappState.mainWindow.show();\n\t\t\tappState.mainWindow.focus();\n\t\t}\n\t});\n}\n\napp.whenReady().then(async () => {\n\tawait initialize();\n\n\tapp.on(\"activate\", () => {\n\t\tif (BrowserWindow.getAllWindows().length === 0) {\n\t\t\tcreateWindow();\n\t\t}\n\t});\n});\n\napp.on(\"before-quit\", async () => {\n\tappState.isQuitting = true;\n\ttry {\n\t\t// Save the final config state before exiting.\n\t\tawait saveConfiguration();\n\t} catch (error) {\n\t\tconsole.error(\"Failed to save configuration during quit:\", error);\n\t}\n});\n\napp.on(\"window-all-closed\", () => {\n\tif (process.platform !== \"darwin\") {\n\t\tapp.quit();\n\t}\n});\n\n/**\n * Initializes the application by loading config, translations,\n * and setting up handlers.\n */\nasync function initialize() {\n\tawait loadConfiguration();\n\tawait loadTranslations();\n\n\tregisterIpcHandlers();\n\tregisterAutoUpdaterEvents();\n\n\tcreateWindow();\n\n\tif (process.platform === \"win32\") {\n\t\tapp.setAppUserModelId(app.name);\n\t}\n}\n\nfunction createWindow() {\n\tconst bounds = appState.config.bounds || {};\n\n\tappState.mainWindow = new BrowserWindow({\n\t\t...bounds,\n\t\tminWidth: 800,\n\t\tminHeight: 600,\n\t\tautoHideMenuBar: true,\n\t\tshow: false,\n\t\ticon: path.join(__dirname, \"/assets/images/icon.png\"),\n\t\twebPreferences: {\n\t\t\tnodeIntegration: true,\n\t\t\tcontextIsolation: false,\n\t\t\tspellcheck: false,\n\t\t},\n\t});\n\n\tappState.mainWindow.loadFile(\"html/index.html\");\n\n\tappState.mainWindow.once(\"ready-to-show\", () => {\n\t\tif (appState.config.isMaximized) {\n\t\t\tappState.mainWindow.maximize();\n\t\t}\n\t\tappState.mainWindow.show();\n\t});\n\n\tconst saveBounds = () => {\n\t\tif (appState.mainWindow && !appState.mainWindow.isMaximized()) {\n\t\t\tappState.config.bounds = appState.mainWindow.getBounds();\n\t\t}\n\t};\n\n\tappState.mainWindow.on(\"resize\", saveBounds);\n\tappState.mainWindow.on(\"move\", saveBounds);\n\n\tappState.mainWindow.on(\"maximize\", () => {\n\t\tappState.config.isMaximized = true;\n\t});\n\n\tappState.mainWindow.on(\"unmaximize\", () => {\n\t\tappState.config.isMaximized = false;\n\t});\n\n\tappState.mainWindow.on(\"close\", (event) => {\n\t\tif (!appState.isQuitting && appState.trayEnabled) {\n\t\t\tevent.preventDefault();\n\t\t\tappState.mainWindow.hide();\n\t\t\tif (app.dock) app.dock.hide();\n\t\t}\n\t});\n}\n\n/**\n * @param {string} file The HTML file to load.\n */\nfunction createSecondaryWindow(file) {\n\tif (appState.secondaryWindow) {\n\t\tappState.secondaryWindow.focus();\n\t\treturn;\n\t}\n\n\tappState.secondaryWindow = new BrowserWindow({\n\t\tparent: appState.mainWindow,\n\t\tmodal: true,\n\t\tshow: false,\n\t\twebPreferences: {\n\t\t\tnodeIntegration: true,\n\t\t\tcontextIsolation: false,\n\t\t},\n\t\twidth: 1000,\n\t\theight: 800,\n\t});\n\n\t// appState.secondaryWindow.webContents.openDevTools();\n\tappState.secondaryWindow.loadFile(file);\n\tappState.secondaryWindow.setMenu(null);\n\tappState.secondaryWindow.once(\"ready-to-show\", () => {\n\t\tappState.secondaryWindow.show();\n\t});\n\n\tappState.secondaryWindow.on(\"closed\", () => {\n\t\tappState.secondaryWindow = null;\n\t});\n}\n\n/**\n * Creates the system tray icon\n */\nfunction createTray() {\n\tif (appState.tray) return;\n\n\tlet iconPath;\n\tif (process.platform === \"win32\") {\n\t\ticonPath = path.join(__dirname, \"resources/icon.ico\");\n\t} else if (process.platform === \"darwin\") {\n\t\ticonPath = path.join(__dirname, \"resources/icons/16x16.png\");\n\t} else {\n\t\ticonPath = path.join(__dirname, \"resources/icons/256x256.png\");\n\t}\n\n\tappState.tray = new Tray(iconPath);\n\n\tconst contextMenu = Menu.buildFromTemplate([\n\t\t{\n\t\t\tlabel: i18n(\"openApp\"),\n\t\t\tclick: () => {\n\t\t\t\tappState.mainWindow?.show();\n\t\t\t\tif (app.dock) app.dock.show();\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tlabel: i18n(\"pasteVideoLink\"),\n\t\t\tclick: async () => {\n\t\t\t\tconst text = clipboard.readText();\n\t\t\t\tappState.mainWindow?.show();\n\t\t\t\tif (app.dock) app.dock.show();\n\t\t\t\tif (appState.indexPageIsOpen) {\n\t\t\t\t\tappState.mainWindow.webContents.send(\"link\", text);\n\t\t\t\t} else {\n\t\t\t\t\tawait appState.mainWindow.loadFile(\"html/index.html\");\n\t\t\t\t\tappState.indexPageIsOpen = true;\n\t\t\t\t\tappState.mainWindow.webContents.once(\n\t\t\t\t\t\t\"did-finish-load\",\n\t\t\t\t\t\t() => {\n\t\t\t\t\t\t\tappState.mainWindow.webContents.send(\"link\", text);\n\t\t\t\t\t\t}\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tlabel: i18n(\"downloadPlaylistButton\"),\n\t\t\tclick: () => {\n\t\t\t\tappState.indexPageIsOpen = false;\n\t\t\t\tappState.mainWindow?.loadFile(\"html/playlist.html\");\n\t\t\t\tappState.mainWindow?.show();\n\t\t\t\tif (app.dock) app.dock.show();\n\t\t\t},\n\t\t},\n\t\t{\n\t\t\tlabel: i18n(\"quit\"),\n\t\t\tclick: () => {\n\t\t\t\tapp.quit();\n\t\t\t},\n\t\t},\n\t]);\n\n\tappState.tray.setToolTip(\"ytDownloader\");\n\tappState.tray.setContextMenu(contextMenu);\n\tappState.tray.on(\"click\", () => {\n\t\tappState.mainWindow?.show();\n\n\t\tif (app.dock) app.dock.show();\n\t});\n}\n\nfunction registerIpcHandlers() {\n\tipcMain.on(\"autoUpdate\", (_event, status) => {\n\t\tappState.autoUpdateEnabled = status;\n\n\t\tif (status) {\n\t\t\tautoUpdater.checkForUpdates();\n\t\t}\n\t});\n\n\tipcMain.on(\"reload\", () => {\n\t\tappState.mainWindow?.reload();\n\t\tappState.secondaryWindow?.reload();\n\t});\n\n\tipcMain.on(\"get-version\", (event) => {\n\t\tevent.sender.send(\"version\", app.getVersion());\n\t});\n\n\tipcMain.on(\"show-file\", async (_event, fullPath) => {\n\t\ttry {\n\t\t\tawait fs.stat(fullPath);\n\t\t\tshell.showItemInFolder(fullPath);\n\t\t} catch (error) {}\n\t});\n\n\tipcMain.handle(\"show-file\", async (_event, fullPath) => {\n\t\ttry {\n\t\t\tawait fs.stat(fullPath);\n\t\t\tshell.showItemInFolder(fullPath);\n\n\t\t\treturn {success: true};\n\t\t} catch (error) {\n\t\t\treturn {success: false, error: error.message};\n\t\t}\n\t});\n\n\tipcMain.handle(\"open-folder\", async (_event, folderPath) => {\n\t\ttry {\n\t\t\tawait fs.stat(folderPath);\n\t\t\tconst result = await shell.openPath(folderPath);\n\t\t\tif (result) {\n\t\t\t\treturn {success: false, error: result};\n\t\t\t} else {\n\t\t\t\treturn {success: true};\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treturn {success: false, error: error.message};\n\t\t}\n\t});\n\n\tipcMain.on(\"load-win\", (_event, file) => {\n\t\tappState.indexPageIsOpen = file.includes(\"index.html\");\n\t\tappState.mainWindow?.loadFile(file);\n\t});\n\n\tipcMain.on(\"load-page\", (_event, file) => {\n\t\tcreateSecondaryWindow(file);\n\t});\n\n\tipcMain.on(\"close-secondary\", () => {\n\t\tappState.secondaryWindow?.close();\n\t});\n\n\tipcMain.on(\"quit\", () => {\n\t\tapp.quit();\n\t});\n\n\tipcMain.on(\"select-location-main\", async () => {\n\t\tif (!appState.mainWindow) return;\n\t\tconst {canceled, filePaths} = await dialog.showOpenDialog(\n\t\t\tappState.mainWindow,\n\t\t\t{properties: [\"openDirectory\"]}\n\t\t);\n\t\tif (!canceled && filePaths.length > 0) {\n\t\t\tappState.mainWindow.webContents.send(\"downloadPath\", filePaths);\n\t\t}\n\t});\n\n\tipcMain.on(\"select-location-secondary\", async () => {\n\t\tif (!appState.secondaryWindow) return;\n\t\tconst {canceled, filePaths} = await dialog.showOpenDialog(\n\t\t\tappState.secondaryWindow,\n\t\t\t{properties: [\"openDirectory\"]}\n\t\t);\n\t\tif (!canceled && filePaths.length > 0) {\n\t\t\tappState.secondaryWindow.webContents.send(\n\t\t\t\t\"downloadPath\",\n\t\t\t\tfilePaths\n\t\t\t);\n\t\t}\n\t});\n\n\tipcMain.on(\"get-directory\", async () => {\n\t\tif (!appState.mainWindow) return;\n\t\tconst {canceled, filePaths} = await dialog.showOpenDialog(\n\t\t\tappState.mainWindow,\n\t\t\t{properties: [\"openDirectory\"]}\n\t\t);\n\t\tif (!canceled && filePaths.length > 0) {\n\t\t\tappState.mainWindow.webContents.send(\"directory-path\", filePaths);\n\t\t}\n\t});\n\n\tipcMain.on(\"select-config\", async () => {\n\t\tif (!appState.secondaryWindow) return;\n\t\tconst {canceled, filePaths} = await dialog.showOpenDialog(\n\t\t\tappState.secondaryWindow,\n\t\t\t{properties: [\"openFile\"]}\n\t\t);\n\t\tif (!canceled && filePaths.length > 0) {\n\t\t\tappState.secondaryWindow.webContents.send(\"configPath\", filePaths);\n\t\t}\n\t});\n\n\tipcMain.on(\"useTray\", (_event, enabled) => {\n\t\tappState.trayEnabled = enabled;\n\t\tif (enabled) createTray();\n\t\telse {\n\t\t\tappState.tray?.destroy();\n\t\t\tappState.tray = null;\n\t\t}\n\t});\n\n\tipcMain.on(\"progress\", (_event, percentage) => {\n\t\tif (appState.mainWindow) appState.mainWindow.setProgressBar(percentage);\n\t});\n\n\tipcMain.on(\"error_dialog\", async (_event, message) => {\n\t\tconst {response} = await dialog.showMessageBox(appState.mainWindow, {\n\t\t\ttype: \"error\",\n\t\t\ttitle: \"Error\",\n\t\t\tmessage: message,\n\t\t\tbuttons: [\"Ok\", i18n(\"clickToCopy\")],\n\t\t});\n\t\tif (response === 1) clipboard.writeText(message);\n\t});\n\n\tipcMain.handle(\"get-system-locale\", async (_event) => {\n\t\treturn app.getSystemLocale();\n\t});\n\n\tipcMain.handle(\"get-translation\", (_event, locale) => {\n\t\tconst fallbackFile = path.join(__dirname, \"translations\", \"en.json\");\n\t\tconst localeFile = path.join(\n\t\t\t__dirname,\n\t\t\t\"translations\",\n\t\t\t`${locale}.json`\n\t\t);\n\n\t\tconst fallbackData = JSON.parse(readFileSync(fallbackFile, \"utf8\"));\n\n\t\tlet localeData = {};\n\t\tif (locale !== \"en\" && existsSync(localeFile)) {\n\t\t\ttry {\n\t\t\t\tlocaleData = JSON.parse(readFileSync(localeFile, \"utf8\"));\n\t\t\t} catch (e) {\n\t\t\t\tconsole.error(`Could not parse ${localeFile}`, e);\n\t\t\t}\n\t\t}\n\n\t\tconst mergedTranslations = {...fallbackData, ...localeData};\n\n\t\treturn mergedTranslations;\n\t});\n\n\tipcMain.handle(\"get-download-history\", () =>\n\t\tappState.downloadHistory.getHistory()\n\t);\n\tipcMain.handle(\"add-to-history\", (_, info) =>\n\t\tappState.downloadHistory.addDownload(info)\n\t);\n\tipcMain.handle(\"get-download-stats\", () =>\n\t\tappState.downloadHistory.getStats()\n\t);\n\tipcMain.handle(\"delete-history-item\", (_, id) =>\n\t\tappState.downloadHistory.removeHistoryItem(id)\n\t);\n\tipcMain.handle(\"clear-all-history\", async () => {\n\t\tawait appState.downloadHistory.clearHistory();\n\t\treturn true;\n\t});\n\tipcMain.handle(\"export-history-json\", () =>\n\t\tappState.downloadHistory.exportAsJSON()\n\t);\n\tipcMain.handle(\"export-history-csv\", () =>\n\t\tappState.downloadHistory.exportAsCSV()\n\t);\n}\n\nfunction registerAutoUpdaterEvents() {\n\tautoUpdater.on(\"update-available\", async (info) => {\n\t\tconst dialogOpts = {\n\t\t\ttype: \"info\",\n\t\t\tbuttons: [i18n(\"update\"), i18n(\"no\")],\n\t\t\ttitle: \"Update Available\",\n\t\t\tmessage: i18n(\"updateAvailablePrompt\"),\n\t\t\tdetail:\n\t\t\t\tinfo.releaseNotes?.toString().replace(/<[^>]*>?/gm, \"\") ||\n\t\t\t\t\"No details available.\",\n\t\t};\n\t\tconst {response} = await dialog.showMessageBox(\n\t\t\tappState.mainWindow,\n\t\t\tdialogOpts\n\t\t);\n\t\tif (response === 0) {\n\t\t\tautoUpdater.downloadUpdate();\n\t\t}\n\t});\n\n\tautoUpdater.on(\"update-downloaded\", async () => {\n\t\tappState.mainWindow.webContents.send(\"update-downloaded\", \"\");\n\t\tconst dialogOpts = {\n\t\t\ttype: \"info\",\n\t\t\tbuttons: [i18n(\"restart\"), i18n(\"later\")],\n\t\t\ttitle: \"Update Ready\",\n\t\t\tmessage: i18n(\"installAndRestartPrompt\"),\n\t\t};\n\t\tconst {response} = await dialog.showMessageBox(\n\t\t\tappState.mainWindow,\n\t\t\tdialogOpts\n\t\t);\n\t\tif (response === 0) {\n\t\t\tautoUpdater.quitAndInstall();\n\t\t}\n\t});\n\n\tautoUpdater.on(\"download-progress\", async (info) => {\n\t\tappState.mainWindow.webContents.send(\"download-progress\", info.percent);\n\t});\n\n\tautoUpdater.on(\"error\", (error) => {\n\t\tconsole.error(\"Auto-update error:\", error);\n\t\tdialog.showErrorBox(\"Update Error\", i18n(\"updateError\"));\n\t});\n}\n\n/**\n * @param {string} phrase The key to translate.\n * @returns {string} The translated string or the key itself.\n */\nfunction i18n(phrase) {\n\treturn appState.loadedLanguage[phrase] || phrase;\n}\n\n/**\n * Loads the configuration from the config file.\n */\nasync function loadConfiguration() {\n\ttry {\n\t\tconst fileContent = await fs.readFile(CONFIG_FILE_PATH, \"utf8\");\n\t\tappState.config = JSON.parse(fileContent);\n\t} catch (error) {\n\t\tconsole.log(\n\t\t\t\"Could not load config file, using defaults.\",\n\t\t\terror.message\n\t\t);\n\t\tappState.config = {\n\t\t\tbounds: {width: 1024, height: 768},\n\t\t\tisMaximized: false,\n\t\t};\n\t}\n}\n\nasync function saveConfiguration() {\n\ttry {\n\t\tawait fs.writeFile(CONFIG_FILE_PATH, JSON.stringify(appState.config));\n\t} catch (error) {\n\t\tconsole.error(\"Failed to save configuration:\", error);\n\t}\n}\n\nasync function loadTranslations() {\n\tconst locale = app.getSystemLocale();\n\tconsole.log({locale});\n\tconst defaultLangPath = path.join(__dirname, \"translations\", \"en.json\");\n\tlet langPath = path.join(__dirname, \"translations\", `${locale}.json`);\n\n\ttry {\n\t\tawait fs.access(langPath);\n\t} catch {\n\t\tlangPath = defaultLangPath;\n\t}\n\n\ttry {\n\t\tconst fileContent = await fs.readFile(langPath, \"utf8\");\n\t\tappState.loadedLanguage = JSON.parse(fileContent);\n\t} catch (error) {\n\t\tconsole.error(\"Failed to load translation file:\", error);\n\t\tappState.loadedLanguage = {};\n\t}\n}\n"
  },
  {
    "path": "package.json",
    "content": "{\n\t\"dependencies\": {\n\t\t\"electron-updater\": \"^6.6.2\",\n\t\t\"systeminformation\": \"^5.25.11\",\n\t\t\"yt-dlp-wrap-plus\": \"^2.4.3\"\n\t},\n\t\"name\": \"ytdownloader\",\n\t\"version\": \"3.20.2\",\n\t\"main\": \"main.js\",\n\t\"scripts\": {\n\t\t\"start\": \"electron .\",\n\t\t\"dist\": \"electron-builder\",\n\t\t\"debug\": \"electron --inspect=5858 .\",\n\t\t\"windows\": \"electron-builder -w\",\n\t\t\"linux\": \"electron-builder -l\",\n\t\t\"mac\": \"electron-builder -m\",\n\t\t\"gh-windows\": \"electron-builder -w --publish=always\",\n\t\t\"gh-linux\": \"electron-builder -l --publish=always\",\n\t\t\"gh-mac\": \"electron-builder -m --publish=always\"\n\t},\n\t\"author\": {\n\t\t\"name\": \"Andrew\",\n\t\t\"email\": \"aandrew.me@pm.me\"\n\t},\n\t\"publish\": {\n\t\t\"provider\": \"github\",\n\t\t\"owner\": \"aandrew-me\",\n\t\t\"repo\": \"ytDownloader\",\n\t\t\"private\": false\n\t},\n\t\"license\": \"GPL-3.0\",\n\t\"description\": \"Download videos and audios from YouTube and many other sites\",\n\t\"devDependencies\": {\n\t\t\"electron\": \"^30.0.0\",\n\t\t\"electron-builder\": \"^26.0.12\",\n\t\t\"typescript\": \"^5.3.3\"\n\t},\n\t\"build\": {\n\t\t\"productName\": \"YTDownloader\",\n\t\t\"appId\": \"io.github.aandrew_me.ytdn\",\n\t\t\"artifactName\": \"${productName}.${ext}\",\n\t\t\"files\": [\n\t\t\t\"./resources/**/*\",\n\t\t\t\"main.js\",\n\t\t\t\"./html/**/*\",\n\t\t\t\"./resources/**/*\",\n\t\t\t\"./public/**/*\",\n\t\t\t\"package.json\",\n\t\t\t\"./assets/**/*\",\n\t\t\t\"./src/*.js\",\n\t\t\t\"./ffmpeg/**/*\",\n\t\t\t\"!ffmpeg.patch\",\n\t\t\t\"translations\",\n\t\t\t\"node*\"\n\t\t],\n\t\t\"electronLanguages\": [\n\t\t\t\"en-US\"\n\t\t],\n\t\t\"mac\": {\n\t\t\t\"category\": \"Utility\",\n\t\t\t\"target\": [\n\t\t\t\t\"zip\",\n\t\t\t\t\"dmg\"\n\t\t\t],\n\t\t\t\"artifactName\": \"${productName}_Mac_${arch}.${ext}\"\n\t\t},\n\t\t\"dmg\": {\n\t\t\t\"contents\": [\n\t\t\t\t{\n\t\t\t\t\t\"x\": 130,\n\t\t\t\t\t\"y\": 220\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"x\": 410,\n\t\t\t\t\t\"y\": 220,\n\t\t\t\t\t\"type\": \"link\",\n\t\t\t\t\t\"path\": \"/Applications\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"sign\": false\n\t\t},\n\t\t\"asar\": false,\n\t\t\"directories\": {\n\t\t\t\"buildResources\": \"resources\",\n\t\t\t\"output\": \"release\"\n\t\t},\n\t\t\"linux\": {\n\t\t\t\"target\": [\n\t\t\t\t\"Appimage\",\n\t\t\t\t\"snap\",\n\t\t\t\t\"rpm\",\n\t\t\t\t\"zip\",\n\t\t\t\t\"deb\"\n\t\t\t],\n\t\t\t\"category\": \"Utility\",\n\t\t\t\"artifactName\": \"${productName}_Linux.${ext}\"\n\t\t},\n\t\t\"snap\": {\n\t\t\t\"grade\": \"stable\",\n\t\t\t\"base\": \"core22\"\n\t\t},\n\t\t\"win\": {\n\t\t\t\"target\": [\n\t\t\t\t\"nsis\",\n\t\t\t\t\"msi\",\n\t\t\t\t\"zip\"\n\t\t\t],\n\t\t\t\"artifactName\": \"${productName}_Win.${ext}\"\n\t\t},\n\t\t\"nsis\": {\n\t\t\t\"allowToChangeInstallationDirectory\": true,\n\t\t\t\"oneClick\": false,\n\t\t\t\"deleteAppDataOnUninstall\": true\n\t\t},\n\t\t\"msi\": {\n\t\t\t\"oneClick\": true,\n\t\t\t\"createDesktopShortcut\": true,\n\t\t\t\"createStartMenuShortcut\": true,\n\t\t\t\"shortcutName\": \"YTDownloader\"\n\t\t}\n\t}\n}\n"
  },
  {
    "path": "src/common.js",
    "content": "const electron = require(\"electron\");\n/**\n *\n * @param {string} id\n * @returns {any}\n */\nfunction getId(id) {\n\treturn document.getElementById(id);\n}\n\ngetId(\"menuIcon\").addEventListener(\"click\", () => {\n\tconst menuDisplay = getId(\"menu\").style.display;\n\tif (menuDisplay != \"none\" && menuDisplay != \"\") {\n\t\tgetId(\"menuIcon\").style.transform = \"rotate(0deg)\";\n\t\tlet count = 0;\n\t\tlet opacity = 1;\n\t\tconst fade = setInterval(() => {\n\t\t\tif (count >= 10) {\n\t\t\t\tgetId(\"menu\").style.display = \"none\";\n\t\t\t\tclearInterval(fade);\n\t\t\t} else {\n\t\t\t\topacity -= 0.1;\n\t\t\t\tgetId(\"menu\").style.opacity = opacity.toFixed(3).toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}, 50);\n\t} else {\n\t\tgetId(\"menuIcon\").style.transform = \"rotate(90deg)\";\n\n\t\tsetTimeout(() => {\n\t\t\tgetId(\"menu\").style.display = \"flex\";\n\t\t\tgetId(\"menu\").style.opacity = \"1\";\n\t\t}, 150);\n\t}\n});\n\ngetId(\"themeToggle\").addEventListener(\"change\", () => {\n\tlocalStorage.setItem(\"theme\", getId(\"themeToggle\").value);\n\n\tconst x = window.innerWidth;\n\tconst y = 0;\n\tconst maxRadius = Math.hypot(window.innerWidth, window.innerHeight);\n\n\tconst transition = document.startViewTransition(() => {\n\t\tdocument.documentElement.setAttribute(\"theme\", getId(\"themeToggle\").value);\n\t});\n\n\ttransition.ready.then(() => {\n\t  document.documentElement.animate(\n\t\t{\n\t\t  clipPath: [\n\t\t\t`circle(0px at ${x}px ${y}px)`,\n\t\t\t`circle(${maxRadius}px at ${x}px ${y}px)`\n\t\t  ]\n\t\t},\n\t\t{\n\t\t  duration: 1100,\n\t\t  easing: 'cubic-bezier(0.4, 0, 0.2, 1)',\n\t\t  pseudoElement: '::view-transition-new(root)'\n\t\t}\n\t  );\n\t});\n});\n\nconst storageTheme = localStorage.getItem(\"theme\");\nif (storageTheme) {\n\tdocument.documentElement.setAttribute(\"theme\", storageTheme);\n\tgetId(\"themeToggle\").value = storageTheme;\n} else {\n\tgetId(\"themeToggle\").value = \"frappe\";\n\tdocument.documentElement.setAttribute(\"theme\", \"frappe\");\n}\n\n////\nlet advancedHidden = true;\n\nfunction advancedToggle() {\n\tif (advancedHidden) {\n\t\tgetId(\"advanced\").style.display = \"block\";\n\t\tadvancedHidden = false;\n\t} else {\n\t\tgetId(\"advanced\").style.display = \"none\";\n\t\tadvancedHidden = true;\n\t}\n}\n\n// Check scroll go to top\n\nwindow.onscroll = function () {\n\tscrollFunction();\n};\n\nfunction scrollFunction() {\n\tif (\n\t\tdocument.body.scrollTop > 50 ||\n\t\tdocument.documentElement.scrollTop > 50\n\t) {\n\t\tgetId(\"goToTop\").style.display = \"block\";\n\t} else {\n\t\tgetId(\"goToTop\").style.display = \"none\";\n\t}\n}\n\n// Function to scroll go to top\n\ngetId(\"goToTop\").addEventListener(\"click\", () => {\n\twindow.scrollTo({top: 0, behavior: \"smooth\"});\n});\n\n// Showing and hiding error details\nfunction toggleErrorDetails() {\n\tconst status = getId(\"errorDetails\").style.display;\n\tif (status === \"none\") {\n\t\tgetId(\"errorDetails\").style.display = \"block\";\n\t\t// @ts-ignore\n\t\tgetId(\"errorBtn\").textContent = i18n.__(\"errorDetails\") + \" ▲\";\n\t} else {\n\t\tgetId(\"errorDetails\").style.display = \"none\";\n\t\t// @ts-ignore\n\t\tgetId(\"errorBtn\").textContent = i18n.__(\"errorDetails\") + \" ▼\";\n\t}\n}"
  },
  {
    "path": "src/compressor.js",
    "content": "const {exec, execSync} = require(\"child_process\");\nconst path = require(\"path\");\nconst {ipcRenderer, shell} = require(\"electron\");\nconst os = require(\"os\");\nconst si = require(\"systeminformation\");\nconst {existsSync} = require(\"fs\");\n\ndocument.addEventListener(\"translations-loaded\", () => {\n\twindow.i18n.translatePage();\n});\n\nlet menuIsOpen = false;\n\ngetId(\"menuIcon\").addEventListener(\"click\", () => {\n\tif (menuIsOpen) {\n\t\tgetId(\"menuIcon\").style.transform = \"rotate(0deg)\";\n\t\tmenuIsOpen = false;\n\t\tlet count = 0;\n\t\tlet opacity = 1;\n\t\tconst fade = setInterval(() => {\n\t\t\tif (count >= 10) {\n\t\t\t\tgetId(\"menu\").style.display = \"none\";\n\t\t\t\tclearInterval(fade);\n\t\t\t} else {\n\t\t\t\topacity -= 0.1;\n\t\t\t\tgetId(\"menu\").style.opacity = opacity.toFixed(3).toString();\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}, 50);\n\t} else {\n\t\tgetId(\"menuIcon\").style.transform = \"rotate(90deg)\";\n\t\tmenuIsOpen = true;\n\n\t\tsetTimeout(() => {\n\t\t\tgetId(\"menu\").style.display = \"flex\";\n\t\t\tgetId(\"menu\").style.opacity = \"1\";\n\t\t}, 150);\n\t}\n});\n\nconst ffmpeg = `\"${getFfmpegPath()}\"`;\n\nconsole.log(ffmpeg);\n\nconst vaapi_device = \"/dev/dri/renderD128\";\n\n// Checking GPU\nsi.graphics().then((info) => {\n\tconsole.log({gpuInfo: info});\n\tconst gpuDevices = info.controllers;\n\n\tgpuDevices.forEach((gpu) => {\n\t\t// NVIDIA\n\t\tconst gpuName = gpu.vendor.toLowerCase();\n\t\tconst gpuModel = gpu.model.toLowerCase();\n\n\t\tif (gpuName.includes(\"nvidia\") || gpuModel.includes(\"nvidia\")) {\n\t\t\tdocument.querySelectorAll(\".nvidia_opt\").forEach((opt) => {\n\t\t\t\topt.style.display = \"block\";\n\t\t\t});\n\t\t} else if (\n\t\t\tgpuName.includes(\"advanced micro devices\") ||\n\t\t\tgpuModel.includes(\"amd\")\n\t\t) {\n\t\t\tif (os.platform() == \"win32\") {\n\t\t\t\tdocument.querySelectorAll(\".amf_opt\").forEach((opt) => {\n\t\t\t\t\topt.style.display = \"block\";\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tdocument.querySelectorAll(\".vaapi_opt\").forEach((opt) => {\n\t\t\t\t\topt.style.display = \"block\";\n\t\t\t\t});\n\t\t\t}\n\t\t} else if (gpuName.includes(\"intel\")) {\n\t\t\tif (os.platform() == \"win32\") {\n\t\t\t\tdocument.querySelectorAll(\".qsv_opt\").forEach((opt) => {\n\t\t\t\t\topt.style.display = \"block\";\n\t\t\t\t});\n\t\t\t} else if (os.platform() != \"darwin\") {\n\t\t\t\tdocument.querySelectorAll(\".vaapi_opt\").forEach((opt) => {\n\t\t\t\t\topt.style.display = \"block\";\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tif (os.platform() == \"darwin\") {\n\t\t\t\tdocument\n\t\t\t\t\t.querySelectorAll(\".videotoolbox_opt\")\n\t\t\t\t\t.forEach((opt) => {\n\t\t\t\t\t\topt.style.display = \"block\";\n\t\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n});\n\n/** @type {File[]} */\nlet files = [];\nlet activeProcesses = new Set();\nlet currentItemId = \"\";\nlet isCancelled = false;\n\n/**\n * @param {string} id\n */\nfunction getId(id) {\n\treturn document.getElementById(id);\n}\n\n// File Handling\nconst dropZone = document.querySelector(\".drop-zone\");\nconst fileInput = getId(\"fileInput\");\nconst selectedFilesDiv = getId(\"selected-files\");\n\ndropZone.addEventListener(\"dragover\", (e) => {\n\te.preventDefault();\n\tdropZone.classList.add(\"dragover\");\n});\n\ndropZone.addEventListener(\"dragleave\", () => {\n\tdropZone.classList.remove(\"dragover\");\n});\n\ndropZone.addEventListener(\"drop\", (e) => {\n\te.preventDefault();\n\tdropZone.classList.remove(\"dragover\");\n\t// @ts-ignore\n\tconsole.log(e.dataTransfer);\n\tfiles = Array.from(e.dataTransfer.files);\n\tupdateSelectedFiles();\n});\n\nfileInput.addEventListener(\"change\", (e) => {\n\t// @ts-ignore\n\tfiles = Array.from(e.target.files);\n\tupdateSelectedFiles();\n});\n\ngetId(\"custom-folder-select\").addEventListener(\"click\", (e) => {\n\tipcRenderer.send(\"get-directory\", \"\");\n});\n\nfunction updateSelectedFiles() {\n\tconst fileList = files\n\t\t.map((f) => `${f.name} (${formatBytes(f.size)})<br/>`)\n\t\t.join(\"\\n\");\n\tselectedFilesDiv.innerHTML = fileList || \"No files selected\";\n}\n\n// Compression Logic\ngetId(\"compress-btn\").addEventListener(\"click\", startCompression);\ngetId(\"cancel-btn\").addEventListener(\"click\", cancelCompression);\n\nasync function startCompression() {\n\tif (files.length === 0) return alert(\"Please select files first!\");\n\n\tconst settings = getEncoderSettings();\n\n\tfor (const file of files) {\n\t\tconst itemId =\n\t\t\t\"f\" + Math.random().toFixed(10).toString().slice(2).toString();\n\t\tcurrentItemId = itemId;\n\n\t\tconst outputPath = generateOutputPath(file, settings);\n\n\t\ttry {\n\t\t\tawait compressVideo(file, settings, itemId, outputPath);\n\n\t\t\tif (isCancelled) {\n\t\t\t\tisCancelled = false;\n\t\t\t} else {\n\t\t\t\tupdateProgress(\"success\", \"\", itemId);\n\t\t\t\tconst fileSavedElement = document.createElement(\"b\");\n\t\t\t\tfileSavedElement.textContent = i18n.__(\"fileSavedClickToOpen\");\n\t\t\t\tfileSavedElement.onclick = () => {\n\t\t\t\t\tipcRenderer.send(\"show-file\", outputPath);\n\t\t\t\t};\n\t\t\t\tgetId(itemId + \"_prog\").appendChild(fileSavedElement);\n\t\t\t\tcurrentItemId = \"\";\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconst errorElement = document.createElement(\"div\");\n\t\t\terrorElement.onclick = () => {\n\t\t\t\tipcRenderer.send(\"error_dialog\", error.message);\n\t\t\t};\n\t\t\terrorElement.textContent = i18n.__(\"errorClickForDetails\");\n\t\t\tupdateProgress(\"error\", \"\", itemId);\n\t\t\tgetId(itemId + \"_prog\").appendChild(errorElement);\n\t\t\tcurrentItemId = \"\";\n\t\t}\n\t}\n}\n\nfunction cancelCompression() {\n\tactiveProcesses.forEach((child) => {\n\t\tchild.stdin.write(\"q\");\n\t\tisCancelled = true;\n\t});\n\tactiveProcesses.clear();\n\tupdateProgress(\"error\", \"Cancelled\", currentItemId);\n}\n\n/**\n * @param {File} file\n */\nfunction generateOutputPath(file, settings) {\n\tconsole.log({settings});\n\tconst output_extension = settings.extension;\n\tconst parsed_file = path.parse(file.path);\n\n\tlet outputDir = settings.outputPath || parsed_file.dir;\n\n\tif (output_extension == \"unchanged\") {\n\t\treturn path.join(\n\t\t\toutputDir,\n\t\t\t`${parsed_file.name}${settings.outputSuffix}${parsed_file.ext}`\n\t\t);\n\t}\n\n\treturn path.join(\n\t\toutputDir,\n\t\t`${parsed_file.name}_compressed.${output_extension}`\n\t);\n}\n\n/**\n * @param {File} file\n * @param {{ encoder: any; speed: any; videoQuality: any; audioQuality?: any; audioFormat: string, extension: string }} settings\n * @param {string} itemId\n * @param {string} outputPath\n */\nasync function compressVideo(file, settings, itemId, outputPath) {\n\tconst command = buildFFmpegCommand(file, settings, outputPath);\n\n\tconsole.log(\"Command: \" + command);\n\n\treturn new Promise((resolve, reject) => {\n\t\tconst child = exec(command, (error) => {\n\t\t\tif (error) reject(error);\n\t\t\telse resolve();\n\t\t});\n\n\t\tactiveProcesses.add(child);\n\t\tchild.on(\"exit\", (_code) => {\n\t\t\tactiveProcesses.delete(child);\n\t\t});\n\n\t\tlet video_info = {\n\t\t\tduration: \"\",\n\t\t\tbitrate: \"\",\n\t\t};\n\n\t\tcreateProgressItem(\n\t\t\tpath.basename(file.path),\n\t\t\t\"progress\",\n\t\t\t`Starting...`,\n\t\t\titemId\n\t\t);\n\n\t\tchild.stderr.on(\"data\", (data) => {\n\t\t\t// console.log(data)\n\t\t\tconst duration_match = data.match(/Duration:\\s*([\\d:.]+)/);\n\t\t\tif (duration_match) {\n\t\t\t\tvideo_info.duration = duration_match[1];\n\t\t\t}\n\n\t\t\t// const bitrate_match = data.match(/bitrate:\\s*([\\d:.]+)/);\n\t\t\t// if (bitrate_match) {\n\t\t\t// \t// Bitrate in kb/s\n\t\t\t// \tvideo_info.bitrate = bitrate_match[1];\n\t\t\t// }\n\n\t\t\tconst progressTime = data.match(/time=(\\d+:\\d+:\\d+\\.\\d+)/);\n\n\t\t\tconst totalSeconds = timeToSeconds(video_info.duration);\n\n\t\t\tconst currentSeconds =\n\t\t\t\tprogressTime && progressTime.length > 1\n\t\t\t\t\t? timeToSeconds(progressTime[1])\n\t\t\t\t\t: null;\n\n\t\t\tif (currentSeconds && !isCancelled) {\n\t\t\t\tconst progress = Math.round(\n\t\t\t\t\t(currentSeconds / totalSeconds) * 100\n\t\t\t\t);\n\n\t\t\t\tgetId(\n\t\t\t\t\titemId + \"_prog\"\n\t\t\t\t).innerHTML = `<progress class=\"progressBarCompress\" min=0 max=100 value=${progress}>`;\n\t\t\t}\n\t\t});\n\t});\n}\n\n/**\n * @param {File} file\n * @param {{ encoder: string; speed: string; videoQuality: string; audioQuality: string; audioFormat: string }} settings\n * @param {string} outputPath\n */\nfunction buildFFmpegCommand(file, settings, outputPath) {\n\tconst inputPath = file.path;\n\n\tconsole.log(\"Output path: \" + outputPath);\n\n\tconst args = [\"-hide_banner\", \"-y\", \"-stats\", \"-i\", `\"${inputPath}\"`];\n\n\tswitch (settings.encoder) {\n\t\tcase \"copy\":\n\t\t\targs.push(\"-c:v\", \"copy\");\n\t\t\tbreak;\n\t\tcase \"x264\":\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"libx264\",\n\t\t\t\t\"-preset\",\n\t\t\t\tsettings.speed,\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-crf\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\tcase \"x265\":\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"libx265\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-preset\",\n\t\t\t\tsettings.speed,\n\t\t\t\t\"-crf\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\t// Intel windows\n\t\tcase \"qsv\":\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"h264_qsv\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-preset\",\n\t\t\t\tsettings.speed,\n\t\t\t\t\"-global_quality\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\t// Linux amd and intel\n\t\tcase \"vaapi\":\n\t\t\targs.push(\n\t\t\t\t\"-vaapi_device\",\n\t\t\t\tvaapi_device,\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=nv12,hwupload\",\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"h264_vaapi\",\n\t\t\t\t\"-qp\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\tcase \"hevc_vaapi\":\n\t\t\targs.push(\n\t\t\t\t\"-vaapi_device\",\n\t\t\t\tvaapi_device,\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=nv12,hwupload\",\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"hevc_vaapi\",\n\t\t\t\t\"-qp\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\t// Nvidia windows and linux\n\t\tcase \"nvenc\":\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"h264_nvenc\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-preset\",\n\t\t\t\tgetNvencPreset(settings.speed),\n\t\t\t\t\"-rc\",\n\t\t\t\t\"vbr\",\n\t\t\t\t\"-cq\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\t// Amd windows\n\t\tcase \"hevc_amf\":\n\t\t\tlet amf_hevc_quality = \"balanced\";\n\n\t\t\tif (settings.speed == \"slow\") {\n\t\t\t\tamf_hevc_quality = \"quality\";\n\t\t\t} else if (settings.speed == \"fast\") {\n\t\t\t\tamf_hevc_quality = \"speed\";\n\t\t\t}\n\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"hevc_amf\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-quality\",\n\t\t\t\tamf_hevc_quality,\n\t\t\t\t\"-rc\",\n\t\t\t\t\"cqp\",\n\t\t\t\t\"-qp_i\",\n\t\t\t\tparseInt(settings.videoQuality).toString(),\n\t\t\t\t\"-qp_p\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\tcase \"amf\":\n\t\t\tlet amf_quality = \"balanced\";\n\n\t\t\tif (settings.speed == \"slow\") {\n\t\t\t\tamf_quality = \"quality\";\n\t\t\t} else if (settings.speed == \"fast\") {\n\t\t\t\tamf_quality = \"speed\";\n\t\t\t}\n\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"h264_amf\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"-quality\",\n\t\t\t\tamf_quality,\n\t\t\t\t\"-rc\",\n\t\t\t\t\"cqp\",\n\t\t\t\t\"-qp_i\",\n\t\t\t\tparseInt(settings.videoQuality).toString(),\n\t\t\t\t\"-qp_p\",\n\t\t\t\tparseInt(settings.videoQuality).toString(),\n\t\t\t\t\"-qp_b\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t\tcase \"videotoolbox\":\n\t\t\targs.push(\n\t\t\t\t\"-c:v\",\n\t\t\t\t\"-vf\",\n\t\t\t\t\"format=yuv420p\",\n\t\t\t\t\"h264_videotoolbox\",\n\t\t\t\t\"-q:v\",\n\t\t\t\tparseInt(settings.videoQuality).toString()\n\t\t\t);\n\t\t\tbreak;\n\t}\n\n\t// args.push(\"-vf\", \"scale=trunc(iw*1/2)*2:trunc(ih*1/2)*2,format=yuv420p\");\n\n\targs.push(\"-c:a\", settings.audioFormat, `\"${outputPath}\"`);\n\n\treturn `${ffmpeg} ${args.join(\" \")}`;\n}\n\n/**\n *\n * @returns {{ encoder: string; speed: string; videoQuality: string; audioQuality?: string; audioFormat: string, extension: string, outputPath:string }} settings\n */\nfunction getEncoderSettings() {\n\treturn {\n\t\t// @ts-ignore\n\t\tencoder: getId(\"encoder\").value,\n\t\t// @ts-ignore\n\t\tspeed: getId(\"compression-speed\").value,\n\t\t// @ts-ignore\n\t\tvideoQuality: getId(\"video-quality\").value,\n\t\t// @ts-ignore\n\t\taudioFormat: getId(\"audio-format\").value,\n\t\t// @ts-ignore\n\t\textension: getId(\"file_extension\").value,\n\t\toutputPath: getId(\"custom-folder-path\").textContent,\n\t\t// @ts-ignore\n\t\toutputSuffix: getId(\"output-suffix\").value,\n\t};\n}\n\n/**\n * @param {string | number} speed\n */\nfunction getNvencPreset(speed) {\n\tconst presets = {fast: \"p3\", medium: \"p4\", slow: \"p5\"};\n\treturn presets[speed] || \"p4\";\n}\n\n/**\n * @param {string} status\n * @param {string} data\n * @param {string} itemId\n */\nfunction updateProgress(status, data, itemId) {\n\tif (status == \"success\" || status == \"error\") {\n\t\tconst item = getId(\"itemId\");\n\n\t\tif (item) {\n\t\t\tgetId(itemId).classList.remove(\"progress\");\n\t\t\tgetId(itemId).classList.add(status);\n\t\t}\n\t}\n\n\tif (itemId) {\n\t\tgetId(itemId + \"_prog\").textContent = data;\n\t}\n}\n\n/**\n * @param {string} filename\n * @param {string} status\n * @param {string} data\n * @param {string} itemId\n */\nfunction createProgressItem(filename, status, data, itemId) {\n\tconst statusElement = getId(\"compression-status\");\n\tconst newStatus = document.createElement(\"div\");\n\tnewStatus.id = itemId;\n\tnewStatus.className = `status-item ${status}`;\n\tconst visibleFilename = filename.substring(0, 45);\n\tnewStatus.innerHTML = `\n        <div class=\"filename\">${visibleFilename}</div>\n        <div id=\"${itemId + \"_prog\"}\" class=\"itemProgress\">${data}</div>\n    `;\n\tstatusElement.append(newStatus);\n}\n\n/**\n * @param {any} bytes\n */\nfunction formatBytes(bytes) {\n\tconst units = [\"B\", \"KB\", \"MB\", \"GB\"];\n\tlet size = bytes;\n\tlet unitIndex = 0;\n\twhile (size >= 1024 && unitIndex < units.length - 1) {\n\t\tsize /= 1024;\n\t\tunitIndex++;\n\t}\n\treturn `${size.toFixed(2)} ${units[unitIndex]}`;\n}\n\n/**\n * @param {string} timeStr\n */\nfunction timeToSeconds(timeStr) {\n\tif (!timeStr) {\n\t\treturn 0;\n\t}\n\n\tconst [hh, mm, ss] = timeStr.split(\":\").map(parseFloat);\n\treturn hh * 3600 + mm * 60 + ss;\n}\n\nfunction getFfmpegPath() {\n\tif (\n\t\tprocess.env.YTDOWNLOADER_FFMPEG_PATH &&\n\t\texistsSync(process.env.YTDOWNLOADER_FFMPEG_PATH)\n\t) {\n\t\tconsole.log(\"Using FFMPEG from YTDOWNLOADER_FFMPEG_PATH\");\n\t\treturn process.env.YTDOWNLOADER_FFMPEG_PATH;\n\t}\n\n\tswitch (os.platform()) {\n\t\tcase \"win32\":\n\t\t\treturn path.join(__dirname, \"..\", \"ffmpeg\", \"bin\", \"ffmpeg.exe\");\n\t\tcase \"freebsd\":\n\t\t\ttry {\n\t\t\t\treturn execSync(\"which ffmpeg\").toString(\"utf8\").trim();\n\t\t\t} catch (error) {\n\t\t\t\tconsole.error(\"ffmpeg not found on FreeBSD:\", error);\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\tdefault:\n\t\t\treturn path.join(__dirname, \"..\", \"ffmpeg\", \"bin\", \"ffmpeg\");\n\t}\n}\n\ngetId(\"themeToggle\").addEventListener(\"change\", () => {\n\tdocument.documentElement.setAttribute(\"theme\", getId(\"themeToggle\").value);\n\tlocalStorage.setItem(\"theme\", getId(\"themeToggle\").value);\n});\n\ngetId(\"output-folder-input\").addEventListener(\"change\", (e) => {\n\tconst checked = e.target.checked;\n\n\tif (!checked) {\n\t\tgetId(\"custom-folder-select\").style.display = \"block\";\n\t} else {\n\t\tgetId(\"custom-folder-select\").style.display = \"none\";\n\t\tgetId(\"custom-folder-path\").textContent = \"\";\n\t\tgetId(\"custom-folder-path\").style.display = \"none\";\n\t}\n});\n\nconst storageTheme = localStorage.getItem(\"theme\");\nif (storageTheme) {\n\tdocument.documentElement.setAttribute(\"theme\", storageTheme);\n\tgetId(\"themeToggle\").value = storageTheme;\n} else {\n\tdocument.documentElement.setAttribute(\"theme\", \"frappe\");\n\tgetId(\"themeToggle\").value = \"frappe\";\n}\n\nipcRenderer.on(\"directory-path\", (_event, msg) => {\n\tlet customFolderPathItem = getId(\"custom-folder-path\");\n\n\tcustomFolderPathItem.textContent = msg;\n\tcustomFolderPathItem.style.display = \"inline\";\n});\n\nfunction closeMenu() {\n\tgetId(\"menuIcon\").style.transform = \"rotate(0deg)\";\n\tlet count = 0;\n\tlet opacity = 1;\n\tconst fade = setInterval(() => {\n\t\tif (count >= 10) {\n\t\t\tclearInterval(fade);\n\t\t} else {\n\t\t\topacity -= 0.1;\n\t\t\tgetId(\"menu\").style.opacity = String(opacity);\n\t\t\tcount++;\n\t\t}\n\t}, 50);\n}\n\n// Menu\ngetId(\"preferenceWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tmenuIsOpen = false;\n\tipcRenderer.send(\"load-page\", __dirname + \"/preferences.html\");\n});\n\ngetId(\"playlistWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tmenuIsOpen = false;\n\tipcRenderer.send(\"load-win\", __dirname + \"/playlist.html\");\n});\n\ngetId(\"aboutWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tmenuIsOpen = false;\n\tipcRenderer.send(\"load-page\", __dirname + \"/about.html\");\n});\n\ngetId(\"historyWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tmenuIsOpen = false;\n\tipcRenderer.send(\"load-page\", __dirname + \"/history.html\");\n});\n\ngetId(\"homeWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tmenuIsOpen = false;\n\tipcRenderer.send(\"load-win\", __dirname + \"/index.html\");\n});\n"
  },
  {
    "path": "src/history.js",
    "content": "/**\n * Download History Manager\n */\n\nconst fs = require(\"fs\");\nconst path = require(\"path\");\nconst crypto = require(\"crypto\");\nconst {app} = require(\"electron\");\n\nclass DownloadHistory {\n\tconstructor() {\n\t\tthis.historyFile = path.join(\n\t\t\tapp.getPath(\"userData\"),\n\t\t\t\"download_history.json\"\n\t\t);\n\t\tthis.maxHistoryItems = 800;\n\t\tthis.history = [];\n\t\tthis.initialized = this._loadHistory().then((history) => {\n\t\t\tthis.history = history;\n\t\t});\n\t}\n\t_generateUniqueId() {\n\t\treturn crypto.randomUUID();\n\t}\n\n\tasync _loadHistory() {\n\t\ttry {\n\t\t\tif (fs.existsSync(this.historyFile)) {\n\t\t\t\tconst data = await fs.promises.readFile(\n\t\t\t\t\tthis.historyFile,\n\t\t\t\t\t\"utf8\"\n\t\t\t\t);\n\t\t\t\treturn JSON.parse(data) || [];\n\t\t\t}\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Error loading history:\", error);\n\t\t}\n\t\treturn [];\n\t}\n\n\tasync _saveHistory() {\n\t\ttry {\n\t\t\tawait fs.promises.writeFile(\n\t\t\t\tthis.historyFile,\n\t\t\t\tJSON.stringify(this.history, null, 2)\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Error saving history:\", error);\n\t\t}\n\t}\n\n\tasync addDownload(downloadInfo) {\n\t\tawait this.initialized;\n\n\t\tconst historyItem = {\n\t\t\tid: this._generateUniqueId(),\n\t\t\ttitle: downloadInfo.title || \"Unknown\",\n\t\t\turl: downloadInfo.url || \"\",\n\t\t\tfilename: downloadInfo.filename || \"\",\n\t\t\tfilePath: downloadInfo.filePath || \"\",\n\t\t\tfileSize: downloadInfo.fileSize || 0,\n\t\t\tformat: downloadInfo.format || \"unknown\",\n\t\t\tthumbnail: downloadInfo.thumbnail || \"\",\n\t\t\tduration: downloadInfo.duration || 0,\n\t\t\tdownloadDate: new Date().toISOString(),\n\t\t\ttimestamp: Date.now(),\n\t\t};\n\n\t\t// Add to beginning for most recent first\n\t\tthis.history.unshift(historyItem);\n\n\t\t// Keep only recent items\n\t\tif (this.history.length > this.maxHistoryItems) {\n\t\t\tthis.history = this.history.slice(0, this.maxHistoryItems);\n\t\t}\n\n\t\tawait this._saveHistory();\n\t\treturn historyItem;\n\t}\n\n\tasync getHistory() {\n\t\tawait this.initialized;\n\t\treturn this.history;\n\t}\n\n\tasync getFilteredHistory(options = {}) {\n\t\tawait this.initialized;\n\n\t\tlet filtered = [...this.history];\n\n\t\tif (options.format) {\n\t\t\tfiltered = filtered.filter(\n\t\t\t\t(item) =>\n\t\t\t\t\titem.format.toLowerCase() === options.format.toLowerCase()\n\t\t\t);\n\t\t}\n\n\t\tif (options.searchTerm) {\n\t\t\tconst term = options.searchTerm.toLowerCase();\n\t\t\tfiltered = filtered.filter(\n\t\t\t\t(item) =>\n\t\t\t\t\titem.title.toLowerCase().includes(term) ||\n\t\t\t\t\titem.url.toLowerCase().includes(term)\n\t\t\t);\n\t\t}\n\n\t\tif (options.limit) {\n\t\t\tfiltered = filtered.slice(0, options.limit);\n\t\t}\n\n\t\treturn filtered;\n\t}\n\n\tasync getHistoryItem(id) {\n\t\tawait this.initialized;\n\t\treturn this.history.find((item) => item.id === id) || null;\n\t}\n\n\tasync removeHistoryItem(id) {\n\t\tawait this.initialized;\n\n\t\tconst index = this.history.findIndex((item) => item.id === id);\n\t\tif (index !== -1) {\n\t\t\tthis.history.splice(index, 1);\n\t\t\tawait this._saveHistory();\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tasync clearHistory() {\n\t\tawait this.initialized;\n\n\t\tthis.history = [];\n\t\tawait this._saveHistory();\n\t}\n\n\tasync getStats() {\n\t\tawait this.initialized;\n\n\t\tconst stats = {\n\t\t\ttotalDownloads: this.history.length,\n\t\t\ttotalSize: 0,\n\t\t\tbyFormat: {},\n\t\t\toldestDownload: null,\n\t\t\tnewestDownload: null,\n\t\t};\n\n\t\tthis.history.forEach((item) => {\n\t\t\tstats.totalSize += item.fileSize || 0;\n\n\t\t\tconst fmt = item.format.toLowerCase();\n\t\t\tstats.byFormat[fmt] = (stats.byFormat[fmt] || 0) + 1;\n\t\t});\n\n\t\tif (this.history.length > 0) {\n\t\t\tstats.newestDownload = this.history[0];\n\t\t\tstats.oldestDownload = this.history[this.history.length - 1];\n\t\t}\n\n\t\treturn stats;\n\t}\n\n\tasync exportAsJSON() {\n\t\tawait this.initialized;\n\t\treturn JSON.stringify(this.history, null, 2);\n\t}\n\n\t_sanitizeCSVField(value) {\n\t\tif (value == null) {\n\t\t\tvalue = \"\";\n\t\t}\n\n\t\tconst stringValue = String(value);\n\n\t\tlet sanitized = stringValue.replace(/\"/g, '\"\"');\n\n\t\tconst dangerousChars = [\"=\", \"+\", \"-\", \"@\"];\n\t\tif (sanitized.length > 0 && dangerousChars.includes(sanitized[0])) {\n\t\t\tsanitized = \"'\" + sanitized;\n\t\t}\n\n\t\treturn `\"${sanitized}\"`;\n\t}\n\n\tasync exportAsCSV() {\n\t\tawait this.initialized;\n\n\t\tif (this.history.length === 0) return \"No history to export\\n\";\n\n\t\tconst headers = [\n\t\t\t\"Title\",\n\t\t\t\"URL\",\n\t\t\t\"Filename\",\n\t\t\t\"Format\",\n\t\t\t\"File Size (bytes)\",\n\t\t\t\"Download Date\",\n\t\t];\n\t\tconst rows = this.history.map((item) => [\n\t\t\tthis._sanitizeCSVField(item.title),\n\t\t\tthis._sanitizeCSVField(item.url),\n\t\t\tthis._sanitizeCSVField(item.filename),\n\t\t\tthis._sanitizeCSVField(item.format),\n\t\t\tthis._sanitizeCSVField(item.fileSize),\n\t\t\tthis._sanitizeCSVField(item.downloadDate),\n\t\t]);\n\n\t\treturn (\n\t\t\theaders.join(\",\") +\n\t\t\t\"\\n\" +\n\t\t\trows.map((row) => row.join(\",\")).join(\"\\n\")\n\t\t);\n\t}\n}\n\nmodule.exports = DownloadHistory;\n"
  },
  {
    "path": "src/index.js",
    "content": "const videoToggle = getId(\"videoToggle\");\nconst audioToggle = getId(\"audioToggle\");\nconst incorrectMsg = getId(\"incorrectMsg\");\nconst loadingMsg = getId(\"loadingWrapper\");\n\nfunction getId(id) {\n\treturn document.getElementById(id);\n}\n\n// Video and audio toggle\n\nvideoToggle.addEventListener(\"click\", (event) => {\n\tselectVideo()\n});\n\naudioToggle.addEventListener(\"click\", (event) => {\n\tselectAudio()\n});\n\n/////////////\nfunction selectVideo(){\n\tlocalStorage.setItem(\"defaultWindow\", \"video\")\n\tvideoToggle.style.backgroundColor = \"var(--box-toggleOn)\";\n\taudioToggle.style.backgroundColor = \"var(--box-toggle)\";\n\tgetId(\"audioList\").style.display = \"none\";\n\tgetId(\"audioExtract\").style.display = \"none\";\n\tgetId(\"videoList\").style.display = \"block\";\n}\n\nfunction selectAudio(){\n\tlocalStorage.setItem(\"defaultWindow\", \"audio\")\n\taudioToggle.style.backgroundColor = \"var(--box-toggleOn)\";\n\tvideoToggle.style.backgroundColor = \"var(--box-toggle)\";\n\tgetId(\"videoList\").style.display = \"none\";\n\tgetId(\"audioList\").style.display = \"block\";\n\tgetId(\"audioExtract\").style.display = \"block\";\n}"
  },
  {
    "path": "src/playlist.js",
    "content": "const {clipboard, ipcRenderer} = require(\"electron\");\nconst {default: YTDlpWrap} = require(\"yt-dlp-wrap-plus\");\nconst path = require(\"path\");\nconst os = require(\"os\");\nconst fs = require(\"fs\");\nconst {execSync} = require(\"child_process\");\nconst {constants} = require(\"fs/promises\");\n\nconst playlistDownloader = {\n\t// State and config\n\tstate: {\n\t\turl: null,\n\t\tdownloadDir: null,\n\t\tytDlpPath: null,\n\t\tytDlpWrap: null,\n\t\tffmpegPath: null,\n\t\tjsRuntimePath: null,\n\t\tplaylistName: \"\",\n\t\toriginalCount: 0,\n\t\tcurrentDownloadProcess: null,\n\t},\n\n\tconfig: {\n\t\tfoldernameFormat: \"%(playlist_title)s\",\n\t\tfilenameFormat: \"%(playlist_index)s.%(title)s.%(ext)s\",\n\t\tproxy: \"\",\n\t\tcookie: {\n\t\t\tbrowser: \"\",\n\t\t\targ: \"\",\n\t\t},\n\t\tconfigFile: {\n\t\t\targ: \"\",\n\t\t\tpath: \"\",\n\t\t},\n\t\tplaylistRange: {\n\t\t\tstart: 1,\n\t\t\tend: \"\",\n\t\t},\n\t},\n\n\t// DOM elements\n\tui: {\n\t\tpasteLinkBtn: document.getElementById(\"pasteLink\"),\n\t\tlinkDisplay: document.getElementById(\"link\"),\n\t\toptionsContainer: document.getElementById(\"options\"),\n\t\tdownloadList: document.getElementById(\"list\"),\n\n\t\tdownloadVideoBtn: document.getElementById(\"download\"),\n\t\tdownloadAudioBtn: document.getElementById(\"audioDownload\"),\n\t\tdownloadThumbnailsBtn: document.getElementById(\"downloadThumbnails\"),\n\t\tsaveLinksBtn: document.getElementById(\"saveLinks\"),\n\n\t\tselectLocationBtn: document.getElementById(\"selectLocation\"),\n\t\tpathDisplay: document.getElementById(\"path\"),\n\t\topenDownloadsBtn: document.getElementById(\"openDownloads\"),\n\n\t\tvideoToggle: document.getElementById(\"videoToggle\"),\n\t\taudioToggle: document.getElementById(\"audioToggle\"),\n\t\tadvancedToggle: document.getElementById(\"advancedToggle\"),\n\t\tvideoBox: document.getElementById(\"videoBox\"),\n\t\taudioBox: document.getElementById(\"audioBox\"),\n\t\tvideoQualitySelect: document.getElementById(\"select\"),\n\t\tvideoTypeSelect: document.getElementById(\"videoTypeSelect\"),\n\t\ttypeSelectBox: document.getElementById(\"typeSelectBox\"),\n\t\taudioTypeSelect: document.getElementById(\"audioSelect\"),\n\t\taudioQualitySelect: document.getElementById(\"audioQualitySelect\"),\n\n\t\tadvancedMenu: document.getElementById(\"advancedMenu\"),\n\t\tplaylistIndexInput: document.getElementById(\"playlistIndex\"),\n\t\tplaylistEndInput: document.getElementById(\"playlistEnd\"),\n\t\tsubtitlesCheckbox: document.getElementById(\"subChecked\"),\n\t\tcloseHiddenBtn: document.getElementById(\"closeHidden\"),\n\n\t\tplaylistNameDisplay: document.getElementById(\"playlistName\"),\n\t\terrorMsgDisplay: document.getElementById(\"incorrectMsgPlaylist\"),\n\t\terrorBtn: document.getElementById(\"errorBtn\"),\n\t\terrorDetails: document.getElementById(\"errorDetails\"),\n\n\t\tmenuIcon: document.getElementById(\"menuIcon\"),\n\t\tmenu: document.getElementById(\"menu\"),\n\t\tpreferenceWinBtn: document.getElementById(\"preferenceWin\"),\n\t\taboutWinBtn: document.getElementById(\"aboutWin\"),\n\t\thistoryWinBtn: document.getElementById(\"historyWin\"),\n\t\thomeWinBtn: document.getElementById(\"homeWin\"),\n\t\tcompressorWinBtn: document.getElementById(\"compressorWin\"),\n\t},\n\n\tinit() {\n\t\tthis.loadInitialConfig();\n\t\tthis.initEventListeners();\n\n\t\t// Set initial UI state\n\t\tthis.ui.pathDisplay.textContent = this.state.downloadDir;\n\t\tthis.ui.videoToggle.style.backgroundColor = \"var(--box-toggleOn)\";\n\t\tthis.updateVideoTypeVisibility();\n\n\t\t// Load translations when ready\n\t\tdocument.addEventListener(\"translations-loaded\", () => {\n\t\t\twindow.i18n.translatePage();\n\t\t});\n\n\t\tconsole.log(`yt-dlp path: ${this.state.ytDlpPath}`);\n\t\tconsole.log(`ffmpeg path: ${this.state.ffmpegPath}`);\n\t},\n\n\tloadInitialConfig() {\n\t\t// yt-dlp path\n\t\tthis.state.ytDlpPath = localStorage.getItem(\"ytdlp\");\n\t\tthis.state.ytDlpWrap = new YTDlpWrap(`\"${this.state.ytDlpPath}\"`);\n\n\t\tconst defaultDownloadsDir = path.join(os.homedir(), \"Downloads\");\n\t\tlet preferredDir =\n\t\t\tlocalStorage.getItem(\"downloadPath\") || defaultDownloadsDir;\n\t\ttry {\n\t\t\tfs.accessSync(preferredDir, constants.W_OK);\n\t\t\tthis.state.downloadDir = preferredDir;\n\t\t} catch (err) {\n\t\t\tconsole.error(\n\t\t\t\t\"Unable to write to preferred download directory. Reverting to default.\",\n\t\t\t\terr\n\t\t\t);\n\t\t\tthis.state.downloadDir = defaultDownloadsDir;\n\t\t\tlocalStorage.setItem(\"downloadPath\", defaultDownloadsDir);\n\t\t}\n\n\t\t// ffmpeg and js runtime path setup\n\t\tthis.state.ffmpegPath = this.getFfmpegPath();\n\t\tthis.state.jsRuntimePath = this.getJsRuntimePath();\n\n\t\tif (localStorage.getItem(\"preferredVideoQuality\")) {\n\t\t\tthis.ui.videoQualitySelect.value = localStorage.getItem(\n\t\t\t\t\"preferredVideoQuality\"\n\t\t\t);\n\t\t}\n\t\tif (localStorage.getItem(\"preferredAudioQuality\")) {\n\t\t\tthis.ui.audioQualitySelect.value = localStorage.getItem(\n\t\t\t\t\"preferredAudioQuality\"\n\t\t\t);\n\t\t}\n\t},\n\n\tinitEventListeners() {\n\t\tthis.ui.pasteLinkBtn.addEventListener(\"click\", () => this.pasteLink());\n\t\tdocument.addEventListener(\"keydown\", (event) => {\n\t\t\tif (\n\t\t\t\t(event.ctrlKey && event.key === \"v\") ||\n\t\t\t\t(event.metaKey &&\n\t\t\t\t\tevent.key === \"v\" &&\n\t\t\t\t\tos.platform() === \"darwin\" &&\n\t\t\t\t\tdocument.activeElement.tagName !== \"INPUT\" &&\n\t\t\t\t\tdocument.activeElement.tagName !== \"TEXTAREA\")\n\t\t\t) {\n\t\t\t\tthis.pasteLink();\n\t\t\t}\n\t\t});\n\n\t\tthis.ui.downloadVideoBtn.addEventListener(\"click\", () =>\n\t\t\tthis.startDownload(\"video\")\n\t\t);\n\t\tthis.ui.downloadAudioBtn.addEventListener(\"click\", () =>\n\t\t\tthis.startDownload(\"audio\")\n\t\t);\n\t\tthis.ui.downloadThumbnailsBtn.addEventListener(\"click\", () =>\n\t\t\tthis.startDownload(\"thumbnails\")\n\t\t);\n\t\tthis.ui.saveLinksBtn.addEventListener(\"click\", () =>\n\t\t\tthis.startDownload(\"links\")\n\t\t);\n\n\t\tthis.ui.videoToggle.addEventListener(\"click\", () =>\n\t\t\tthis.toggleDownloadType(\"video\")\n\t\t);\n\t\tthis.ui.audioToggle.addEventListener(\"click\", () =>\n\t\t\tthis.toggleDownloadType(\"audio\")\n\t\t);\n\t\tthis.ui.advancedToggle.addEventListener(\"click\", () =>\n\t\t\tthis.toggleAdvancedMenu()\n\t\t);\n\t\tthis.ui.videoQualitySelect.addEventListener(\"change\", () =>\n\t\t\tthis.updateVideoTypeVisibility()\n\t\t);\n\t\tthis.ui.selectLocationBtn.addEventListener(\"click\", () =>\n\t\t\tipcRenderer.send(\"select-location-main\", \"\")\n\t\t);\n\t\tthis.ui.openDownloadsBtn.addEventListener(\"click\", () =>\n\t\t\tthis.openDownloadsFolder()\n\t\t);\n\t\tthis.ui.closeHiddenBtn.addEventListener(\"click\", () =>\n\t\t\tthis.hideOptions(true)\n\t\t);\n\n\t\tthis.ui.preferenceWinBtn.addEventListener(\"click\", () =>\n\t\t\tthis.navigate(\"page\", \"/preferences.html\")\n\t\t);\n\t\tthis.ui.aboutWinBtn.addEventListener(\"click\", () =>\n\t\t\tthis.navigate(\"page\", \"/about.html\")\n\t\t);\n\t\tthis.ui.historyWinBtn.addEventListener(\"click\", () =>\n\t\t\tthis.navigate(\"page\", \"/history.html\")\n\t\t);\n\t\tthis.ui.homeWinBtn.addEventListener(\"click\", () =>\n\t\t\tthis.navigate(\"win\", \"/index.html\")\n\t\t);\n\t\tthis.ui.compressorWinBtn.addEventListener(\"click\", () =>\n\t\t\tthis.navigate(\"win\", \"/compressor.html\")\n\t\t);\n\n\t\tipcRenderer.on(\"downloadPath\", (_event, downloadPath) => {\n\t\t\tif (downloadPath && downloadPath[0]) {\n\t\t\t\tthis.ui.pathDisplay.textContent = downloadPath[0];\n\t\t\t\tthis.state.downloadDir = downloadPath[0];\n\t\t\t}\n\t\t});\n\t},\n\n\tstartDownload(type) {\n\t\tif (!this.state.url) {\n\t\t\tthis.showError(\"URL is missing. Please paste a link first.\");\n\t\t\treturn;\n\t\t}\n\t\tthis.updateDynamicConfig();\n\t\tthis.hideOptions();\n\n\t\tconst controller = new AbortController();\n\t\tconst baseArgs = this.buildBaseArgs();\n\t\tlet specificArgs = [];\n\n\t\tswitch (type) {\n\t\t\tcase \"video\":\n\t\t\t\tspecificArgs = this.getVideoArgs();\n\t\t\t\tbreak;\n\t\t\tcase \"audio\":\n\t\t\t\tspecificArgs = this.getAudioArgs();\n\t\t\t\tbreak;\n\t\t\tcase \"thumbnails\":\n\t\t\t\tspecificArgs = this.getThumbnailArgs();\n\t\t\t\tbreak;\n\t\t\tcase \"links\":\n\t\t\t\tspecificArgs = this.getLinkArgs();\n\t\t\t\tbreak;\n\t\t}\n\n\t\tconst allArgs = [\n\t\t\t...baseArgs,\n\t\t\t...specificArgs,\n\t\t\t`\"${this.state.url}\"`,\n\t\t].filter(Boolean);\n\n\t\tconsole.log(`Command: ${this.state.ytDlpPath}`, allArgs.join(\" \"));\n\t\tthis.state.currentDownloadProcess = this.state.ytDlpWrap.exec(\n\t\t\tallArgs,\n\t\t\t{shell: true, detached: false},\n\t\t\tcontroller.signal\n\t\t);\n\n\t\tthis.handleDownloadEvents(this.state.currentDownloadProcess, type);\n\t},\n\n\tbuildBaseArgs() {\n\t\tconst {start, end} = this.config.playlistRange;\n\t\tconst outputPath = `\"${path.join(\n\t\t\tthis.state.downloadDir,\n\t\t\tthis.config.foldernameFormat,\n\t\t\tthis.config.filenameFormat\n\t\t)}\"`;\n\n\t\treturn [\n\t\t\t\"--yes-playlist\",\n\t\t\t\"-o\",\n\t\t\toutputPath,\n\t\t\t\"-I\",\n\t\t\t`\"${start}:${end}\"`,\n\t\t\t\"--ffmpeg-location\",\n\t\t\t`\"${this.state.ffmpegPath}\"`,\n\t\t\t...(this.state.jsRuntimePath\n\t\t\t\t? [\"--no-js-runtimes\", \"--js-runtime\", this.state.jsRuntimePath]\n\t\t\t\t: []),\n\t\t\tthis.config.cookie.arg,\n\t\t\tthis.config.cookie.browser,\n\t\t\tthis.config.configFile.arg,\n\t\t\tthis.config.configFile.path,\n\t\t\t...(this.config.proxy\n\t\t\t\t? [\"--no-check-certificate\", \"--proxy\", this.config.proxy]\n\t\t\t\t: []),\n\t\t\t\"--compat-options\",\n\t\t\t\"no-youtube-unavailable-videos\",\n\t\t].filter(Boolean);\n\t},\n\n\tgetVideoArgs() {\n\t\tconst quality = this.ui.videoQualitySelect.value;\n\t\tconst videoType = this.ui.videoTypeSelect.value;\n\t\tlet formatArgs = [];\n\n\t\tif (quality === \"best\") {\n\t\t\tformatArgs = [\"-f\", \"bv*+ba/best\"];\n\t\t} else if (quality === \"worst\") {\n\t\t\tformatArgs = [\"-f\", \"wv+wa/worst\"];\n\t\t} else if (quality === \"useConfig\") {\n\t\t\tformatArgs = [];\n\t\t} else {\n\t\t\tif (videoType === \"mp4\") {\n\t\t\t\tformatArgs = [\n\t\t\t\t\t\"-f\",\n\t\t\t\t\t`\"bestvideo[height<=${quality}]+bestaudio[ext=m4a]/best[height<=${quality}]/best\"`,\n\t\t\t\t\t\"--merge-output-format\",\n\t\t\t\t\t\"mp4\",\n\t\t\t\t\t\"--recode-video\",\n\t\t\t\t\t\"mp4\",\n\t\t\t\t];\n\t\t\t} else if (videoType === \"webm\") {\n\t\t\t\tformatArgs = [\n\t\t\t\t\t\"-f\",\n\t\t\t\t\t`\"bestvideo[height<=${quality}]+bestaudio[ext=webm]/best[height<=${quality}]/best\"`,\n\t\t\t\t\t\"--merge-output-format\",\n\t\t\t\t\t\"webm\",\n\t\t\t\t\t\"--recode-video\",\n\t\t\t\t\t\"webm\",\n\t\t\t\t];\n\t\t\t} else {\n\t\t\t\tformatArgs = [\n\t\t\t\t\t\"-f\",\n\t\t\t\t\t`\"bv*[height=${quality}]+ba/best[height=${quality}]/best[height<=${quality}]\"`,\n\t\t\t\t];\n\t\t\t}\n\t\t}\n\n\t\tconst isYouTube =\n\t\t\tthis.state.url.includes(\"youtube.com/\") ||\n\t\t\tthis.state.url.includes(\"youtu.be/\");\n\t\tconst canEmbedThumb = os.platform() !== \"darwin\";\n\n\t\treturn [\n\t\t\t...formatArgs,\n\t\t\t\"--embed-metadata\",\n\t\t\tthis.ui.subtitlesCheckbox.checked ? \"--write-subs\" : \"\",\n\t\t\tthis.ui.subtitlesCheckbox.checked ? \"--sub-langs\" : \"\",\n\t\t\tthis.ui.subtitlesCheckbox.checked ? \"all\" : \"\",\n\t\t\tvideoType === \"mp4\" && isYouTube && canEmbedThumb\n\t\t\t\t? \"--embed-thumbnail\"\n\t\t\t\t: \"\",\n\t\t].filter(Boolean);\n\t},\n\n\tgetAudioArgs() {\n\t\tconst format = this.ui.audioTypeSelect.value;\n\t\tconst quality = this.ui.audioQualitySelect.value;\n\t\tconst isYouTube =\n\t\t\tthis.state.url.includes(\"youtube.com/\") ||\n\t\t\tthis.state.url.includes(\"youtu.be/\");\n\t\tconst canEmbedThumb = os.platform() !== \"darwin\";\n\n\t\tif (isYouTube && format === \"m4a\" && quality === \"auto\") {\n\t\t\treturn [\n\t\t\t\t\"-f\",\n\t\t\t\t`ba[ext=${format}]/ba`,\n\t\t\t\t\"--embed-metadata\",\n\t\t\t\tcanEmbedThumb ? \"--embed-thumbnail\" : \"\",\n\t\t\t];\n\t\t}\n\n\t\treturn [\n\t\t\t\"-x\",\n\t\t\t\"--audio-format\",\n\t\t\tformat,\n\t\t\t\"--audio-quality\",\n\t\t\tquality,\n\t\t\t\"--embed-metadata\",\n\t\t\t(format === \"mp3\" || (format === \"m4a\" && isYouTube)) &&\n\t\t\tcanEmbedThumb\n\t\t\t\t? \"--embed-thumbnail\"\n\t\t\t\t: \"\",\n\t\t];\n\t},\n\n\tgetThumbnailArgs() {\n\t\treturn [\n\t\t\t\"--write-thumbnail\",\n\t\t\t\"--convert-thumbnails\",\n\t\t\t\"png\",\n\t\t\t\"--skip-download\",\n\t\t];\n\t},\n\n\tgetLinkArgs() {\n\t\tconst linksFilePath = `\"${path.join(\n\t\t\tthis.state.downloadDir,\n\t\t\tthis.config.foldernameFormat,\n\t\t\t\"links.txt\"\n\t\t)}\"`;\n\t\treturn [\n\t\t\t\"--skip-download\",\n\t\t\t\"--print-to-file\",\n\t\t\t\"webpage_url\",\n\t\t\tlinksFilePath,\n\t\t];\n\t},\n\n\t// yt-dlp event handling\n\thandleDownloadEvents(process, type) {\n\t\tlet count = 0;\n\n\t\tprocess.on(\"ytDlpEvent\", (_eventType, eventData) => {\n\t\t\tconst playlistTxt = \"Downloading playlist: \";\n\t\t\tif (eventData.includes(playlistTxt)) {\n\t\t\t\tthis.state.playlistName = eventData\n\t\t\t\t\t.split(playlistTxt)[1]\n\t\t\t\t\t.trim();\n\n\t\t\t\tthis.state.playlistName = this.state.playlistName\n\t\t\t\t\t.replaceAll(\"|\", \"｜\")\n\t\t\t\t\t.replaceAll(`\"`, `＂`)\n\t\t\t\t\t.replaceAll(\"*\", \"＊\")\n\t\t\t\t\t.replaceAll(\"/\", \"⧸\")\n\t\t\t\t\t.replaceAll(\"\\\\\", \"⧹\")\n\t\t\t\t\t.replaceAll(\":\", \"：\")\n\t\t\t\t\t.replaceAll(\"?\", \"？\");\n\n\t\t\t\tif (\n\t\t\t\t\tos.platform() === \"win32\" &&\n\t\t\t\t\tthis.state.playlistName.endsWith(\".\")\n\t\t\t\t) {\n\t\t\t\t\tthis.state.playlistName =\n\t\t\t\t\t\tthis.state.playlistName.slice(0, -1) + \"#\";\n\t\t\t\t}\n\n\t\t\t\tthis.ui.playlistNameDisplay.textContent = `${window.i18n.__(\n\t\t\t\t\t\"downloadingPlaylist\"\n\t\t\t\t)} ${this.state.playlistName}`;\n\t\t\t}\n\n\t\t\tconst videoIndexTxt = \"Downloading item \";\n\t\t\tconst oldVideoIndexTxt = \"Downloading video \";\n\t\t\tif (\n\t\t\t\t(eventData.includes(videoIndexTxt) ||\n\t\t\t\t\teventData.includes(oldVideoIndexTxt)) &&\n\t\t\t\t!eventData.includes(\"thumbnail\")\n\t\t\t) {\n\t\t\t\tcount++;\n\t\t\t\tthis.state.originalCount++;\n\t\t\t\tthis.updatePlaylistUI(count, type);\n\t\t\t}\n\t\t});\n\n\t\tprocess.on(\"progress\", (progress) => {\n\t\t\tconst progressElement = document.getElementById(`p${count}`);\n\t\t\tif (!progressElement) return;\n\n\t\t\tif (progress.percent === 100) {\n\t\t\t\tprogressElement.textContent = `${window.i18n.__(\n\t\t\t\t\t\"processing\"\n\t\t\t\t)}...`;\n\t\t\t} else {\n\t\t\t\tprogressElement.textContent = `${window.i18n.__(\"progress\")} ${\n\t\t\t\t\tprogress.percent\n\t\t\t\t}% | ${window.i18n.__(\"speed\")} ${\n\t\t\t\t\tprogress.currentSpeed || \"N/A\"\n\t\t\t\t}`;\n\t\t\t}\n\t\t});\n\n\t\tprocess.on(\"error\", (error) => this.showError(error));\n\t\tprocess.on(\"close\", () => this.finishDownload(count));\n\t},\n\n\tpasteLink() {\n\t\tthis.state.url = clipboard.readText();\n\t\tthis.ui.linkDisplay.textContent = ` ${this.state.url}`;\n\t\tthis.ui.optionsContainer.style.display = \"block\";\n\t\tthis.ui.errorMsgDisplay.textContent = \"\";\n\t\tthis.ui.errorBtn.style.display = \"none\";\n\t},\n\n\tupdatePlaylistUI(count, type) {\n\t\tlet itemTitle = \"\";\n\t\tswitch (type) {\n\t\t\tcase \"thumbnails\":\n\t\t\t\titemTitle = `${window.i18n.__(\"thumbnail\")} ${\n\t\t\t\t\tthis.state.originalCount\n\t\t\t\t}`;\n\t\t\t\tbreak;\n\t\t\tcase \"links\":\n\t\t\t\titemTitle = `${window.i18n.__(\"link\")} ${\n\t\t\t\t\tthis.state.originalCount\n\t\t\t\t}`;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\titemTitle = `${window.i18n.__(type)} ${\n\t\t\t\t\tthis.state.originalCount\n\t\t\t\t}`;\n\t\t}\n\n\t\tif (count > 1) {\n\t\t\tconst prevProgress = document.getElementById(`p${count - 1}`);\n\t\t\tif (prevProgress)\n\t\t\t\tprevProgress.textContent = window.i18n.__(\"fileSaved\");\n\t\t}\n\n\t\tconst itemHTML = `\n            <div class=\"playlistItem\">\n                <p class=\"itemTitle\">${itemTitle}</p>\n                <p class=\"itemProgress\" id=\"p${count}\">${window.i18n.__(\n\t\t\t\"downloading\"\n\t\t)}</p>\n            </div>`;\n\t\tthis.ui.downloadList.innerHTML += itemHTML;\n\t\twindow.scrollTo(0, document.body.scrollHeight);\n\t},\n\n\tupdateDynamicConfig() {\n\t\t// Naming formats from localStorage\n\t\tthis.config.foldernameFormat =\n\t\t\tlocalStorage.getItem(\"foldernameFormat\") || \"%(playlist_title)s\";\n\t\tthis.config.filenameFormat =\n\t\t\tlocalStorage.getItem(\"filenameFormat\") ||\n\t\t\t\"%(playlist_index)s.%(title)s.%(ext)s\";\n\n\t\t// Proxy, cookies, config file\n\t\tthis.config.proxy = localStorage.getItem(\"proxy\") || \"\";\n\t\tthis.config.cookie.browser = localStorage.getItem(\"browser\") || \"\";\n\t\tthis.config.cookie.arg = this.config.cookie.browser\n\t\t\t? \"--cookies-from-browser\"\n\t\t\t: \"\";\n\t\tconst configPath = localStorage.getItem(\"configPath\");\n\t\tthis.config.configFile.path = configPath ? `\"${configPath}\"` : \"\";\n\t\tthis.config.configFile.arg = configPath ? \"--config-location\" : \"\";\n\n\t\t// Playlist range from UI inputs\n\t\tthis.config.playlistRange.start =\n\t\t\tNumber(this.ui.playlistIndexInput.value) || 1;\n\t\tthis.config.playlistRange.end = this.ui.playlistEndInput.value || \"\";\n\t\tthis.state.originalCount =\n\t\t\tthis.config.playlistRange.start > 1\n\t\t\t\t? this.config.playlistRange.start - 1\n\t\t\t\t: 0;\n\n\t\t// Reset playlist name for new download\n\t\tthis.state.playlistName = \"\";\n\t},\n\n\thideOptions(justHide = false) {\n\t\tthis.ui.optionsContainer.style.display = \"none\";\n\t\tthis.ui.downloadList.innerHTML = \"\";\n\t\tthis.ui.errorBtn.style.display = \"none\";\n\t\tthis.ui.errorDetails.style.display = \"none\";\n\t\tthis.ui.errorDetails.textContent = \"\";\n\t\tthis.ui.errorMsgDisplay.style.display = \"none\";\n\n\t\tif (!justHide) {\n\t\t\tthis.ui.playlistNameDisplay.textContent = `${window.i18n.__(\n\t\t\t\t\"processing\"\n\t\t\t)}...`;\n\t\t\tthis.ui.pasteLinkBtn.style.display = \"none\";\n\t\t\tthis.ui.openDownloadsBtn.style.display = \"inline-block\";\n\t\t}\n\t},\n\n\tfinishDownload(count) {\n\t\tconst lastProgress = document.getElementById(`p${count}`);\n\t\tif (lastProgress)\n\t\t\tlastProgress.textContent = window.i18n.__(\"fileSaved\");\n\t\tthis.ui.pasteLinkBtn.style.display = \"inline-block\";\n\t\tthis.ui.openDownloadsBtn.style.display = \"inline-block\";\n\n\t\tconst notify = new Notification(\"ytDownloader\", {\n\t\t\tbody: window.i18n.__(\"playlistDownloaded\"),\n\t\t\ticon: \"../assets/images/icon.png\",\n\t\t});\n\n\t\tnotify.onclick = () => this.openDownloadsFolder();\n\t},\n\n\tshowError(error) {\n\t\tconsole.error(\"Download Error:\", error.toString());\n\t\tthis.ui.pasteLinkBtn.style.display = \"inline-block\";\n\t\tthis.ui.openDownloadsBtn.style.display = \"none\";\n\t\tthis.ui.optionsContainer.style.display = \"block\";\n\t\tthis.ui.playlistNameDisplay.textContent = \"\";\n\t\tthis.ui.errorMsgDisplay.textContent =\n\t\t\twindow.i18n.__(\"errorNetworkOrUrl\");\n\t\tthis.ui.errorMsgDisplay.style.display = \"block\";\n\t\tthis.ui.errorMsgDisplay.title = error.toString();\n\t\tthis.ui.errorBtn.style.display = \"inline-block\";\n\t\tthis.ui.errorDetails.innerHTML = `<strong>URL: ${\n\t\t\tthis.state.url\n\t\t}</strong><br><br>${error.toString()}`;\n\t\t// this.ui.errorDetails.title = window.i18n.__(\"clickToCopy\");\n\t},\n\n\topenDownloadsFolder() {\n\t\tconst openPath =\n\t\t\tthis.state.playlistName &&\n\t\t\tfs.existsSync(\n\t\t\t\tpath.join(this.state.downloadDir, this.state.playlistName)\n\t\t\t)\n\t\t\t\t? path.join(this.state.downloadDir, this.state.playlistName)\n\t\t\t\t: this.state.downloadDir;\n\n\t\tipcRenderer.invoke(\"open-folder\", openPath).then((result) => {\n\t\t\tif (!result.success) {\n\t\t\t\tipcRenderer.invoke(\"open-folder\", this.state.downloadDir);\n\t\t\t}\n\t\t});\n\t},\n\n\ttoggleDownloadType(type) {\n\t\tconst isVideo = type === \"video\";\n\t\tthis.ui.videoToggle.style.backgroundColor = isVideo\n\t\t\t? \"var(--box-toggleOn)\"\n\t\t\t: \"var(--box-toggle)\";\n\t\tthis.ui.audioToggle.style.backgroundColor = isVideo\n\t\t\t? \"var(--box-toggle)\"\n\t\t\t: \"var(--box-toggleOn)\";\n\t\tthis.ui.videoBox.style.display = isVideo ? \"block\" : \"none\";\n\t\tthis.ui.audioBox.style.display = isVideo ? \"none\" : \"block\";\n\t},\n\n\tupdateVideoTypeVisibility() {\n\t\tconst value = this.ui.videoQualitySelect.value;\n\t\tconst show = ![\"best\", \"worst\", \"useConfig\"].includes(value);\n\t\tthis.ui.typeSelectBox.style.display = show ? \"block\" : \"none\";\n\t},\n\n\ttoggleAdvancedMenu() {\n\t\tconst isHidden =\n\t\t\tthis.ui.advancedMenu.style.display === \"none\" ||\n\t\t\tthis.ui.advancedMenu.style.display === \"\";\n\t\tthis.ui.advancedMenu.style.display = isHidden ? \"block\" : \"none\";\n\t},\n\n\tcloseMenu() {\n\t\tthis.ui.menuIcon.style.transform = \"rotate(0deg)\";\n\t\tthis.ui.menu.style.opacity = \"0\";\n\t\tsetTimeout(() => {\n\t\t\tthis.ui.menu.style.display = \"none\";\n\t\t}, 300);\n\t},\n\n\tnavigate(type, page) {\n\t\tthis.closeMenu();\n\t\tconst event = type === \"page\" ? \"load-page\" : \"load-win\";\n\t\tipcRenderer.send(event, path.join(__dirname, page));\n\t},\n\n\tgetFfmpegPath() {\n\t\tif (\n\t\t\tprocess.env.YTDOWNLOADER_FFMPEG_PATH &&\n\t\t\tfs.existsSync(process.env.YTDOWNLOADER_FFMPEG_PATH)\n\t\t) {\n\t\t\tconsole.log(\"Using FFMPEG from YTDOWNLOADER_FFMPEG_PATH\");\n\t\t\treturn process.env.YTDOWNLOADER_FFMPEG_PATH;\n\t\t}\n\n\t\tswitch (os.platform()) {\n\t\t\tcase \"win32\":\n\t\t\t\treturn path.join(__dirname, \"..\", \"ffmpeg\", \"bin\");\n\t\t\tcase \"freebsd\":\n\t\t\t\ttry {\n\t\t\t\t\treturn execSync(\"which ffmpeg\").toString(\"utf8\").trim();\n\t\t\t\t} catch (error) {\n\t\t\t\t\tconsole.error(\"ffmpeg not found on FreeBSD:\", error);\n\t\t\t\t\treturn \"\";\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\treturn path.join(__dirname, \"..\", \"ffmpeg\", \"bin\");\n\t\t}\n\t},\n\n\tgetJsRuntimePath() {\n\t\t{\n\t\t\tconst exeName = \"node\";\n\n\t\t\tif (process.env.YTDOWNLOADER_NODE_PATH) {\n\t\t\t\tif (fs.existsSync(process.env.YTDOWNLOADER_NODE_PATH)) {\n\t\t\t\t\treturn `$node:\"${process.env.YTDOWNLOADER_NODE_PATH}\"`;\n\t\t\t\t}\n\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\tif (process.env.YTDOWNLOADER_DENO_PATH) {\n\t\t\t\tif (fs.existsSync(process.env.YTDOWNLOADER_DENO_PATH)) {\n\t\t\t\t\treturn `$deno:\"${process.env.YTDOWNLOADER_DENO_PATH}\"`;\n\t\t\t\t}\n\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\tif (os.platform() === \"darwin\") {\n\t\t\t\treturn \"\";\n\t\t\t}\n\n\t\t\tlet jsRuntimePath = path.join(__dirname, \"..\", exeName);\n\n\t\t\tif (os.platform() === \"win32\") {\n\t\t\t\tjsRuntimePath = path.join(__dirname, \"..\", `${exeName}.exe`);\n\t\t\t}\n\n\t\t\tif (fs.existsSync(jsRuntimePath)) {\n\t\t\t\treturn `${exeName}:\"${jsRuntimePath}\"`;\n\t\t\t} else {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t},\n};\n\nplaylistDownloader.init();\n"
  },
  {
    "path": "src/playlist_new.js",
    "content": "const { clipboard, shell, ipcRenderer } = require(\"electron\");\nconst { default: YTDlpWrap } = require(\"yt-dlp-wrap-plus\");\nconst path = require(\"path\");\nconst os = require(\"os\");\nconst fs = require(\"fs\");\nconst { execSync, exec, spawnSync } = require(\"child_process\");\nlet url;\nconst ytDlp = localStorage.getItem(\"ytdlp\");\nconst ytdlp = new YTDlpWrap(ytDlp);\nconst downloadDir = localStorage.getItem(\"downloadPath\");\nconst i18n = new (require(\"../translations/i18n\"))();\nlet cookieArg = \"\";\nlet browser = \"\";\nconst formats = {\n\t144: 160,\n\t240: 133,\n\t360: 134,\n\t480: 135,\n\t720: 136,\n\t1080: 137,\n\t1440: 400,\n\t2160: 401,\n\t4320: 571,\n};\nlet originalCount = 0;\nlet ffmpeg;\nlet ffmpegPath;\nif (os.platform() === \"win32\") {\n\tffmpeg = `\"${__dirname}\\\\..\\\\ffmpeg.exe\"`;\n\tffmpegPath = `${__dirname}\\\\..\\\\ffmpeg.exe`;\n} else {\n\tffmpeg = `\"${__dirname}/../ffmpeg\"`;\n\tffmpegPath = `${__dirname}/../ffmpeg`;\n}\n\nif (!fs.existsSync(ffmpegPath)) {\n\ttry {\n\t\tffmpeg = execSync(\"which ffmpeg\", { encoding: \"utf8\" });\n\t\tffmpeg = `\"${ffmpeg.trimEnd()}\"`;\n\t} catch (error) {\n\t\tconsole.log(error);\n\t}\n}\nconsole.log(\"ffmpeg:\", ffmpeg);\n\nlet foldernameFormat = \"%(playlist_title)s\";\nlet filenameFormat = \"%(playlist_index)s.%(title)s.%(ext)s\";\nlet playlistIndex = 1;\nlet playlistEnd = \"\";\n\nfunction getId(id) {\n\treturn document.getElementById(id);\n}\n\nfunction pasteLink() {\n\tconst clipboardText = clipboard.readText();\n\tgetId(\"loadingWrapper\").style.display = \"flex\";\n\tgetId(\"incorrectMsg\").textContent = \"\";\n\tgetId(\"errorBtn\").style.display = \"none\";\n\tgetId(\"errorDetails\").style.display = \"none\";\n\tgetId(\"errorDetails\").textContent = \"\";\n\texec(\n\t\t`${ytDlp} --yes-playlist --no-warnings -J --flat-playlist \"${clipboardText}\"`,\n\t\t(error, stdout, stderr) => {\n\t\t\tif (error) {\n\t\t\t\tgetId(\"loadingWrapper\").style.display = \"none\";\n\t\t\t\tgetId(\"incorrectMsg\").textContent = i18n.__(\n\t\t\t\t\t\"Some error has occurred. Check your network and use correct URL\"\n\t\t\t\t);\n\t\t\t\tgetId(\"errorDetails\").innerHTML = `\n\t\t\t<strong>URL: ${clipboardText}</strong>\n\t\t\t<br><br>\n\t\t\t${error}\n\t\t\t`;\n\t\t\t\tgetId(\"errorDetails\").title = i18n.__(\"Click to copy\");\n\t\t\t\tgetId(\"errorBtn\").style.display = \"inline-block\";\n\t\t\t} else {\n\t\t\t\tconst parsed = JSON.parse(stdout);\n\t\t\t\tconsole.log(parsed);\n\t\t\t\tlet items = \"\";\n\t\t\t\t// If correct playlist url is used\n\t\t\t\tif (parsed.entries) {\n\t\t\t\t\tparsed.entries.forEach((entry) => {\n\t\t\t\t\t\tconsole.log(entry)\n\t\t\t\t\t\tconst randId = Math.random()\n\t\t\t\t\t\t\t.toFixed(10)\n\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t.slice(2);\n\n\t\t\t\t\t\tif (entry.channel) {\n\t\t\t\t\t\t\titems += `\n\t\t\t\t\t\t<div class=\"item\" id=\"${randId}\">\n\t\t\t\t\t\t<img src=\"${\n\t\t\t\t\t\t\tentry.thumbnails[3].url\n\t\t\t\t\t\t}\" alt=\"No thumbnail\" class=\"itemIcon\" crossorigin=\"anonymous\">\n\t\t\t\n\t\t\t\t\t\t<div class=\"itemBody\">\n\t\t\t\t\t\t\t<div class=\"itemTitle\">${entry.title}</div>\n\t\t\t\t\t\t\t<div>${formatTime(entry.duration)}</div>\n\t\t\t\t\t\t\t<input type=\"checkbox\" class=\"playlistCheck\" id=\"c${randId}\">\n\t\t\t\t\t\t\t<input type=\"hidden\" id=\"link${randId}\" value=\"${entry.url}\">\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t\t`;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tgetId(\"data\").innerHTML = items;\n\t\t\t\t\tgetId(\"loadingWrapper\").style.display = \"none\";\n\t\t\t\t}\n\t\t\t\t// If correct playlist url is not used\n\t\t\t\telse {\n\t\t\t\t\tgetId(\"loadingWrapper\").style.display = \"none\";\n\t\t\t\t\tgetId(\"incorrectMsg\").textContent = i18n.__(\n\t\t\t\t\t\t\"Incompatible URL. Please provide a playlist URL\"\n\t\t\t\t\t);\n\t\t\t\t\tgetId(\"errorDetails\").innerHTML = `\n\t\t\t<strong>URL: ${clipboardText}</strong>\n\t\t\t<br><br>\n\t\t\t${error}\n\t\t\t`;\n\t\t\t\t\tgetId(\"errorDetails\").title = i18n.__(\"Click to copy\");\n\t\t\t\t\tgetId(\"errorBtn\").style.display = \"inline-block\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t);\n}\n\ngetId(\"pasteLink\").addEventListener(\"click\", (e) => {\n\tpasteLink();\n});\n\ndocument.addEventListener(\"keydown\", (event) => {\n\tif (event.ctrlKey && event.key == \"v\") {\n\t\tpasteLink();\n\t}\n});\n\nfunction formatTime(seconds) {\n\tlet hours = Math.floor(seconds / 3600);\n\tlet minutes = Math.floor((seconds - hours * 3600) / 60);\n\tseconds = seconds - hours * 3600 - minutes * 60;\n\tlet formattedTime = \"\";\n\n\tif (hours > 0) {\n\t\tformattedTime += hours + \":\";\n\t}\n\tif (minutes < 10 && hours > 0) {\n\t\tformattedTime += \"0\";\n\t}\n\tformattedTime += minutes + \":\";\n\tif (seconds < 10) {\n\t\tformattedTime += \"0\";\n\t}\n\tformattedTime += seconds;\n\treturn formattedTime;\n}\nfunction closeMenu() {\n\tgetId(\"menuIcon\").style.transform = \"rotate(0deg)\";\n\tmenuIsOpen = false;\n\tlet count = 0;\n\tlet opacity = 1;\n\tconst fade = setInterval(() => {\n\t\tif (count >= 10) {\n\t\t\tclearInterval(fade);\n\t\t} else {\n\t\t\topacity -= 0.1;\n\t\t\tgetId(\"menu\").style.opacity = opacity;\n\t\t\tcount++;\n\t\t}\n\t}, 50);\n}\n\ngetId(\"preferenceWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tipcRenderer.send(\"load-page\", __dirname + \"/preferences.html\");\n});\n\ngetId(\"aboutWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tipcRenderer.send(\"load-page\", __dirname + \"/about.html\");\n});\n\ngetId(\"historyWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tipcRenderer.send(\"load-page\", __dirname + \"/history.html\");\n});\n\ngetId(\"homeWin\").addEventListener(\"click\", () => {\n\tcloseMenu();\n\tipcRenderer.send(\"load-win\", __dirname + \"/index.html\");\n});\n"
  },
  {
    "path": "src/preferences.js",
    "content": "const {ipcRenderer, shell} = require(\"electron\");\nconst {accessSync, constants} = require(\"original-fs\");\nconst {join} = require(\"path\");\nconst {homedir} = require(\"os\");\n\nconst storageTheme = localStorage.getItem(\"theme\");\nif (storageTheme) {\n\tdocument.documentElement.setAttribute(\"theme\", storageTheme);\n} else {\n\tdocument.documentElement.setAttribute(\"theme\", \"frappe\");\n}\n\nlet rightToLeft = \"false\";\nif (localStorage.getItem(\"rightToLeft\")) {\n\trightToLeft = localStorage.getItem(\"rightToLeft\");\n}\nif (rightToLeft == \"true\") {\n\tdocument\n\t\t.querySelectorAll(\".prefBox\")\n\t\t.forEach((/** @type {HTMLElement} */ item) => {\n\t\t\titem.style.flexDirection = \"row-reverse\";\n\t\t});\n} else {\n\tconsole.log(\"Change to left to right\");\n\tdocument\n\t\t.querySelectorAll(\".prefBox\")\n\t\t.forEach((/** @type {HTMLElement} */ item) => {\n\t\t\titem.style.flexDirection = \"row\";\n\t\t});\n}\n\n// Download path\nlet downloadPath = localStorage.getItem(\"downloadPath\");\n\nif (!downloadPath) {\n\tdownloadPath = join(homedir(), \"Downloads\");\n}\ngetId(\"path\").textContent = downloadPath;\n\n/**\n *\n * @param {string} id\n * @returns {any}\n */\nfunction getId(id) {\n\treturn document.getElementById(id);\n}\n\ndocument.addEventListener(\"translations-loaded\", () => {\n\twindow.i18n.translatePage();\n\n\tdocument.title = window.i18n.__(\"preferences\");\n\n\tif (process.env.FLATPAK_ID) {\n\t\tgetId(\"flatpakTxt\").addEventListener(\"click\", () => {\n\t\t\tshell.openExternal(\n\t\t\t\t\"https://flathub.org/apps/com.github.tchx84.Flatseal\"\n\t\t\t);\n\t\t});\n\n\t\tgetId(\"flatpakTxt\").style.display = \"block\";\n\t}\n});\n\ngetId(\"back\").addEventListener(\"click\", () => {\n\tipcRenderer.send(\"close-secondary\");\n});\n\n// Selecting download directory\ngetId(\"selectLocation\").addEventListener(\"click\", () => {\n\tipcRenderer.send(\"select-location-secondary\", \"\");\n});\n\nipcRenderer.on(\"downloadPath\", (_event, downloadPath) => {\n\ttry {\n\t\taccessSync(downloadPath[0], constants.W_OK);\n\n\t\tconsole.log(downloadPath[0]);\n\t\tlocalStorage.setItem(\"downloadPath\", downloadPath[0]);\n\t\tgetId(\"path\").textContent = downloadPath[0];\n\t} catch (error) {\n\t\tshowPopup(i18n.__(\"unableToAccessDir\"), true);\n\t}\n});\n\n// Selecting config directory\n\ngetId(\"configBtn\").addEventListener(\"click\", () => {\n\tipcRenderer.send(\"select-config\", \"\");\n});\n\nipcRenderer.on(\"configPath\", (event, configPath) => {\n\tconsole.log(configPath);\n\tlocalStorage.setItem(\"configPath\", configPath);\n\tgetId(\"configPath\").textContent = configPath;\n});\n\nconst configCheck = getId(\"configCheck\");\nconfigCheck.addEventListener(\"change\", (event) => {\n\tif (configCheck.checked) {\n\t\tgetId(\"configOpts\").style.display = \"flex\";\n\t} else {\n\t\tgetId(\"configOpts\").style.display = \"none\";\n\t\tlocalStorage.setItem(\"configPath\", \"\");\n\t}\n});\n\nconst configPath = localStorage.getItem(\"configPath\");\nif (configPath) {\n\tgetId(\"configPath\").textContent = configPath;\n\tconfigCheck.checked = true;\n\tgetId(\"configOpts\").style.display = \"flex\";\n}\n\n// Language settings\n\nconst language = localStorage.getItem(\"locale\");\n\nif (language) {\n\tif (language.startsWith(\"en\")) {\n\t\tgetId(\"select\").value = \"en\";\n\t} else {\n\t\tgetId(\"select\").value = language;\n\t}\n}\n\nfunction changeLanguage() {\n\tconst language = getId(\"select\").value;\n\tlocalStorage.setItem(\"locale\", language);\n\tif (language === \"fa\" || language === \"ar\") {\n\t\trightToLeft = \"true\";\n\t\tlocalStorage.setItem(\"rightToLeft\", \"true\");\n\t} else {\n\t\trightToLeft = \"false\";\n\t\tlocalStorage.setItem(\"rightToLeft\", \"false\");\n\t}\n}\n\n// Browser preferences\nlet browser = localStorage.getItem(\"browser\");\nif (browser) {\n\tgetId(\"browser\").value = browser;\n}\n\ngetId(\"browser\").addEventListener(\"change\", () => {\n\tbrowser = getId(\"browser\").value;\n\tlocalStorage.setItem(\"browser\", browser);\n});\n\n// Handling preferred video quality\nlet preferredVideoQuality = localStorage.getItem(\"preferredVideoQuality\");\nif (preferredVideoQuality) {\n\tgetId(\"preferredVideoQuality\").value = preferredVideoQuality;\n}\n\ngetId(\"preferredVideoQuality\").addEventListener(\"change\", () => {\n\tpreferredVideoQuality = getId(\"preferredVideoQuality\").value;\n\tlocalStorage.setItem(\"preferredVideoQuality\", preferredVideoQuality);\n});\n\n// Handling preferred audio quality\nlet preferredAudioQuality = localStorage.getItem(\"preferredAudioQuality\");\nif (preferredAudioQuality) {\n\tgetId(\"preferredAudioQuality\").value = preferredAudioQuality;\n}\n\ngetId(\"preferredAudioQuality\").addEventListener(\"change\", () => {\n\tpreferredAudioQuality = getId(\"preferredAudioQuality\").value;\n\tlocalStorage.setItem(\"preferredAudioQuality\", preferredAudioQuality);\n});\n\n// Handling preferred video codec\nlet preferredVideoCodec = localStorage.getItem(\"preferredVideoCodec\");\nif (preferredVideoCodec) {\n\tgetId(\"preferredVideoCodec\").value = preferredVideoCodec;\n}\n\ngetId(\"preferredVideoCodec\").addEventListener(\"change\", () => {\n\tpreferredVideoCodec = getId(\"preferredVideoCodec\").value;\n\tlocalStorage.setItem(\"preferredVideoCodec\", preferredVideoCodec);\n});\n\n// Proxy\nlet proxy = localStorage.getItem(\"proxy\");\nif (proxy) {\n\tgetId(\"proxyTxt\").value = proxy;\n}\ngetId(\"proxyTxt\").addEventListener(\"change\", () => {\n\tproxy = getId(\"proxyTxt\").value;\n\tlocalStorage.setItem(\"proxy\", proxy);\n});\n\n// Custom yt-dlp args\nconst ytDlpArgsInput = getId(\"customArgsInput\");\nlet customYtDlpArgs = localStorage.getItem(\"customYtDlpArgs\");\nif (customYtDlpArgs) {\n\tytDlpArgsInput.value = customYtDlpArgs;\n\tytDlpArgsInput.style.height = ytDlpArgsInput.scrollHeight + \"px\";\n}\nytDlpArgsInput.addEventListener(\"input\", () => {\n\tcustomYtDlpArgs = getId(\"customArgsInput\").value;\n\tlocalStorage.setItem(\"customYtDlpArgs\", customYtDlpArgs.trim());\n\tytDlpArgsInput.style.height = \"auto\";\n\tytDlpArgsInput.style.height = ytDlpArgsInput.scrollHeight + \"px\";\n});\n\ngetId(\"learnMoreLink\").addEventListener(\"click\", () => {\n\tshell.openExternal(\n\t\t\"https://github.com/aandrew-me/ytDownloader/wiki/Custom-yt%E2%80%90dlp-options\"\n\t);\n});\n\n// Reload\nfunction reload() {\n\tipcRenderer.send(\"reload\");\n}\ngetId(\"restart\").addEventListener(\"click\", () => {\n\treload();\n});\n\n// Handling filename formats\ngetId(\"filenameFormat\").addEventListener(\"input\", () => {\n\tconst text = getId(\"filenameFormat\").value;\n\tlocalStorage.setItem(\"filenameFormat\", text);\n});\n\nif (localStorage.getItem(\"filenameFormat\")) {\n\tgetId(\"filenameFormat\").value = localStorage.getItem(\"filenameFormat\");\n}\n\ngetId(\"resetFilenameFormat\").addEventListener(\"click\", () => {\n\tgetId(\"filenameFormat\").value = \"%(playlist_index)s.%(title)s.%(ext)s\";\n\tlocalStorage.setItem(\n\t\t\"filenameFormat\",\n\t\t\"%(playlist_index)s.%(title)s.%(ext)s\"\n\t);\n});\n\n// Handling folder name formats\ngetId(\"foldernameFormat\").addEventListener(\"input\", () => {\n\tconst text = getId(\"foldernameFormat\").value;\n\tlocalStorage.setItem(\"foldernameFormat\", text);\n});\n\nif (localStorage.getItem(\"foldernameFormat\")) {\n\tgetId(\"foldernameFormat\").value = localStorage.getItem(\"foldernameFormat\");\n}\n\ngetId(\"resetFoldernameFormat\").addEventListener(\"click\", () => {\n\tgetId(\"foldernameFormat\").value = \"%(playlist_title)s\";\n\tlocalStorage.setItem(\"foldernameFormat\", \"%(playlist_title)s\");\n});\n\n// Max active downloads\ngetId(\"maxDownloads\").addEventListener(\"input\", () => {\n\tconst number = Number(getId(\"maxDownloads\").value);\n\n\tif (number < 1) {\n\t\tlocalStorage.setItem(\"maxActiveDownloads\", \"1\");\n\t} else {\n\t\tlocalStorage.setItem(\"maxActiveDownloads\", String(number));\n\t}\n});\n\nif (localStorage.getItem(\"maxActiveDownloads\")) {\n\tgetId(\"maxDownloads\").value = localStorage.getItem(\"maxActiveDownloads\");\n}\n\n// Closing app to system tray\nconst closeToTray = getId(\"closeToTray\");\ncloseToTray.addEventListener(\"change\", (event) => {\n\tif (closeToTray.checked) {\n\t\tlocalStorage.setItem(\"closeToTray\", \"true\");\n\t\tipcRenderer.send(\"useTray\", true);\n\t} else {\n\t\tlocalStorage.setItem(\"closeToTray\", \"false\");\n\t\tipcRenderer.send(\"useTray\", false);\n\t}\n});\nconst trayEnabled = localStorage.getItem(\"closeToTray\");\nif (trayEnabled == \"true\") {\n\tcloseToTray.checked = true;\n\tipcRenderer.send(\"useTray\", true);\n}\n\n// Auto updates\nconst autoUpdateDisabled = getId(\"autoUpdateDisabled\");\nautoUpdateDisabled.addEventListener(\"change\", (event) => {\n\tif (autoUpdateDisabled.checked) {\n\t\tlocalStorage.setItem(\"autoUpdate\", \"false\");\n\t} else {\n\t\tlocalStorage.setItem(\"autoUpdate\", \"true\");\n\t}\n});\nconst autoUpdate = localStorage.getItem(\"autoUpdate\");\nif (autoUpdate == \"false\") {\n\tautoUpdateDisabled.checked = true;\n}\n\n// Show more format options\nconst showMoreFormats = getId(\"showMoreFormats\");\nshowMoreFormats.addEventListener(\"change\", (event) => {\n\tif (showMoreFormats.checked) {\n\t\tlocalStorage.setItem(\"showMoreFormats\", \"true\");\n\t} else {\n\t\tlocalStorage.setItem(\"showMoreFormats\", \"false\");\n\t}\n});\nconst showMoreFormatOpts = localStorage.getItem(\"showMoreFormats\");\nif (showMoreFormatOpts == \"true\") {\n\tshowMoreFormats.checked = true;\n}\n\nfunction showPopup(text, isError = false) {\n\tlet popupContainer = document.getElementById(\"popupContainer\");\n\n\tif (!popupContainer) {\n\t\tpopupContainer = document.createElement(\"div\");\n\t\tpopupContainer.id = \"popupContainer\";\n\t\tpopupContainer.className = \"popup-container\";\n\t\tdocument.body.appendChild(popupContainer);\n\t}\n\n\tconst popup = document.createElement(\"span\");\n\tpopup.textContent = text;\n\tpopup.classList.add(\"popup-item\");\n\n\tpopup.style.background = isError ? \"#ff6b6b\" : \"#54abde\";\n\n\tif (isError) {\n\t\tpopup.classList.add(\"popup-error\");\n\t}\n\n\tpopupContainer.appendChild(popup);\n\n\tsetTimeout(() => {\n\t\tpopup.style.opacity = \"0\";\n\t\tsetTimeout(() => {\n\t\t\tpopup.remove();\n\t\t\tif (popupContainer.childElementCount === 0) {\n\t\t\t\tpopupContainer.remove();\n\t\t\t}\n\t\t}, 1000);\n\t}, 2200);\n}\n"
  },
  {
    "path": "src/renderer.js",
    "content": "const {shell, ipcRenderer, clipboard} = require(\"electron\");\nconst {default: YTDlpWrap} = require(\"yt-dlp-wrap-plus\");\nconst {constants} = require(\"fs/promises\");\nconst {homedir, platform} = require(\"os\");\nconst {join} = require(\"path\");\nconst {mkdirSync, accessSync, promises, existsSync} = require(\"fs\");\nconst {execSync, spawn} = require(\"child_process\");\n\nconst CONSTANTS = {\n\tDOM_IDS: {\n\t\t// Main UI\n\t\tPASTE_URL_BTN: \"pasteUrl\",\n\t\tLOADING_WRAPPER: \"loadingWrapper\",\n\t\tINCORRECT_MSG: \"incorrectMsg\",\n\t\tERROR_BTN: \"errorBtn\",\n\t\tERROR_DETAILS: \"errorDetails\",\n\t\tPATH_DISPLAY: \"path\",\n\t\tSELECT_LOCATION_BTN: \"selectLocation\",\n\t\tDOWNLOAD_LIST: \"list\",\n\t\tCLEAR_BTN: \"clearBtn\",\n\t\t// Hidden Info Panel\n\t\tHIDDEN_PANEL: \"hidden\",\n\t\tCLOSE_HIDDEN_BTN: \"closeHidden\",\n\t\tTITLE_CONTAINER: \"title\",\n\t\tTITLE_INPUT: \"titleName\",\n\t\tURL_INPUTS: \".url\",\n\t\tAUDIO_PRESENT_SECTION: \"audioPresent\",\n\t\tQUIT_APP_BTN: \"quitAppBtn\",\n\t\t// Format Selectors\n\t\tVIDEO_FORMAT_SELECT: \"videoFormatSelect\",\n\t\tAUDIO_FORMAT_SELECT: \"audioFormatSelect\",\n\t\tAUDIO_FOR_VIDEO_FORMAT_SELECT: \"audioForVideoFormatSelect\",\n\t\t// Download Buttons\n\t\tVIDEO_DOWNLOAD_BTN: \"videoDownload\",\n\t\tAUDIO_DOWNLOAD_BTN: \"audioDownload\",\n\t\tEXTRACT_BTN: \"extractBtn\",\n\t\t// Audio Extraction\n\t\tEXTRACT_SELECTION: \"extractSelection\",\n\t\tEXTRACT_QUALITY_SELECT: \"extractQualitySelect\",\n\t\t// Advanced Options\n\t\tCUSTOM_ARGS_INPUT: \"customArgsInput\", // Add this line\n\t\tSTART_TIME: \"min-time\",\n\t\tEND_TIME: \"max-time\",\n\t\tMIN_SLIDER: \"min-slider\",\n\t\tMAX_SLIDER: \"max-slider\",\n\t\tSLIDER_RANGE_HIGHLIGHT: \"range-highlight\",\n\t\tSUB_CHECKED: \"subChecked\",\n\t\tQUIT_CHECKED: \"quitChecked\",\n\t\t// Popups\n\t\tPOPUP_BOX: \"popupBox\",\n\t\tPOPUP_BOX_MAC: \"popupBoxMac\",\n\t\tPOPUP_TEXT: \"popupText\",\n\t\tPOPUP_SVG: \"popupSvg\",\n\t\tYTDLP_DOWNLOAD_PROGRESS: \"ytDlpDownloadProgress\",\n\t\tUPDATE_POPUP: \"updatePopup\",\n\t\tUPDATE_POPUP_PROGRESS: \"updateProgress\",\n\t\tUPDATE_POPUP_BAR: \"progressBarFill\",\n\t\t// Menu\n\t\tMENU_ICON: \"menuIcon\",\n\t\tMENU: \"menu\",\n\t\tPREFERENCE_WIN: \"preferenceWin\",\n\t\tABOUT_WIN: \"aboutWin\",\n\t\tPLAYLIST_WIN: \"playlistWin\",\n\t\tHISTORY_WIN: \"historyWin\",\n\t\tCOMPRESSOR_WIN: \"compressorWin\",\n\t},\n\tLOCAL_STORAGE_KEYS: {\n\t\tDOWNLOAD_PATH: \"downloadPath\",\n\t\tYT_DLP_PATH: \"ytdlp\",\n\t\tMAX_DOWNLOADS: \"maxActiveDownloads\",\n\t\tPREFERRED_VIDEO_QUALITY: \"preferredVideoQuality\",\n\t\tPREFERRED_AUDIO_QUALITY: \"preferredAudioQuality\",\n\t\tPREFERRED_VIDEO_CODEC: \"preferredVideoCodec\",\n\t\tSHOW_MORE_FORMATS: \"showMoreFormats\",\n\t\tBROWSER_COOKIES: \"browser\",\n\t\tPROXY: \"proxy\",\n\t\tCONFIG_PATH: \"configPath\",\n\t\tAUTO_UPDATE: \"autoUpdate\",\n\t\tCLOSE_TO_TRAY: \"closeToTray\",\n\t\tYT_DLP_CUSTOM_ARGS: \"customYtDlpArgs\",\n\t},\n};\n\n/**\n * Shorthand for document.getElementById.\n * @param {string} id The ID of the DOM element.\n * @returns {HTMLElement | null}\n */\nconst $ = (id) => document.getElementById(id);\n\nclass YtDownloaderApp {\n\tconstructor() {\n\t\tthis.state = {\n\t\t\tytDlp: null,\n\t\t\tytDlpPath: \"\",\n\t\t\tffmpegPath: \"\",\n\t\t\tjsRuntimePath: \"\",\n\t\t\tdownloadDir: \"\",\n\t\t\tmaxActiveDownloads: 5,\n\t\t\tcurrentDownloads: 0,\n\t\t\t// Video metadata\n\t\t\tvideoInfo: {\n\t\t\t\ttitle: \"\",\n\t\t\t\tthumbnail: \"\",\n\t\t\t\tduration: 0,\n\t\t\t\textractor_key: \"\",\n\t\t\t\turl: \"\",\n\t\t\t},\n\t\t\t// Download options\n\t\t\tdownloadOptions: {\n\t\t\t\trangeCmd: \"\",\n\t\t\t\trangeOption: \"\",\n\t\t\t\tsubs: \"\",\n\t\t\t\tsubLangs: \"\",\n\t\t\t},\n\t\t\t// Preferences\n\t\t\tpreferences: {\n\t\t\t\tvideoQuality: 1080,\n\t\t\t\taudioQuality: \"\",\n\t\t\t\tvideoCodec: \"avc1\",\n\t\t\t\tshowMoreFormats: false,\n\t\t\t\tproxy: \"\",\n\t\t\t\tbrowserForCookies: \"\",\n\t\t\t\tcustomYtDlpArgs: \"\",\n\t\t\t},\n\t\t\tdownloadControllers: new Map(),\n\t\t\tdownloadedItems: new Set(),\n\t\t\tdownloadQueue: [],\n\t\t};\n\t}\n\n\t/**\n\t * Initializes the application, setting up directories, finding executables,\n\t * and attaching event listeners.\n\t */\n\tasync initialize() {\n\t\tawait this._initializeTranslations();\n\n\t\tthis._setupDirectories();\n\t\tthis._configureTray();\n\t\tthis._configureAutoUpdate();\n\n\t\ttry {\n\t\t\tthis.state.ytDlpPath = await this._findOrDownloadYtDlp();\n\t\t\tthis.state.ytDlp = new YTDlpWrap(`\"${this.state.ytDlpPath}\"`);\n\t\t\tthis.state.ffmpegPath = await this._findFfmpeg();\n\t\t\tthis.state.jsRuntimePath = await this._getJsRuntimePath();\n\n\t\t\tconsole.log(\"yt-dlp path:\", this.state.ytDlpPath);\n\t\t\tconsole.log(\"ffmpeg path:\", this.state.ffmpegPath);\n\t\t\tconsole.log(\"JS runtime path:\", this.state.jsRuntimePath);\n\n\t\t\tthis._loadSettings();\n\t\t\tthis._addEventListeners();\n\n\t\t\t// Signal to the main process that the renderer is ready for links\n\t\t\tipcRenderer.send(\"ready-for-links\");\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Initialization failed:\", error);\n\t\t\t$(CONSTANTS.DOM_IDS.INCORRECT_MSG).textContent = error.message;\n\t\t\t$(CONSTANTS.DOM_IDS.PASTE_URL_BTN).style.display = \"none\";\n\t\t}\n\t}\n\n\t/**\n\t * Sets up the application's hidden directory and the default download directory.\n\t */\n\t_setupDirectories() {\n\t\tconst userHomeDir = homedir();\n\t\tconst hiddenDir = join(userHomeDir, \".ytDownloader\");\n\n\t\tif (!existsSync(hiddenDir)) {\n\t\t\ttry {\n\t\t\t\tmkdirSync(hiddenDir, {recursive: true});\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(error);\n\t\t\t}\n\t\t}\n\n\t\tlet defaultDownloadDir = join(userHomeDir, \"Downloads\");\n\t\tif (platform() === \"linux\") {\n\t\t\ttry {\n\t\t\t\tconst xdgDownloadDir = execSync(\"xdg-user-dir DOWNLOAD\")\n\t\t\t\t\t.toString()\n\t\t\t\t\t.trim();\n\t\t\t\tif (xdgDownloadDir) {\n\t\t\t\t\tdefaultDownloadDir = xdgDownloadDir;\n\t\t\t\t}\n\t\t\t} catch (err) {\n\t\t\t\tconsole.warn(\"Could not execute xdg-user-dir:\", err.message);\n\t\t\t}\n\t\t}\n\n\t\tconst savedPath = localStorage.getItem(\n\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.DOWNLOAD_PATH\n\t\t);\n\t\tif (savedPath) {\n\t\t\ttry {\n\t\t\t\taccessSync(savedPath, constants.W_OK);\n\t\t\t\tthis.state.downloadDir = savedPath;\n\t\t\t} catch {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`Cannot write to saved path \"${savedPath}\". Falling back to default.`\n\t\t\t\t);\n\t\t\t\tthis.state.downloadDir = defaultDownloadDir;\n\t\t\t\tlocalStorage.setItem(\n\t\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.DOWNLOAD_PATH,\n\t\t\t\t\tdefaultDownloadDir\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\tthis.state.downloadDir = defaultDownloadDir;\n\t\t}\n\n\t\t$(CONSTANTS.DOM_IDS.PATH_DISPLAY).textContent = this.state.downloadDir;\n\n\t\tif (!existsSync(this.state.downloadDir)) {\n\t\t\tmkdirSync(this.state.downloadDir, {recursive: true});\n\t\t}\n\t}\n\n\t/**\n\t * Checks localStorage to determine if the tray icon should be used.\n\t */\n\t_configureTray() {\n\t\tif (\n\t\t\tlocalStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEYS.CLOSE_TO_TRAY) ===\n\t\t\t\"true\"\n\t\t) {\n\t\t\tconsole.log(\"Tray is enabled.\");\n\t\t\tipcRenderer.send(\"useTray\", true);\n\t\t}\n\t}\n\n\t/**\n\t * Checks settings to determine if auto-updates should be enabled.\n\t */\n\t_configureAutoUpdate() {\n\t\tlet autoUpdate = true;\n\t\tif (\n\t\t\tlocalStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEYS.AUTO_UPDATE) ===\n\t\t\t\"false\"\n\t\t) {\n\t\t\tautoUpdate = false;\n\t\t}\n\t\tif (\n\t\t\tprocess.windowsStore ||\n\t\t\tprocess.env.YTDOWNLOADER_AUTO_UPDATES === \"0\"\n\t\t) {\n\t\t\tautoUpdate = false;\n\t\t}\n\t\tipcRenderer.send(\"autoUpdate\", autoUpdate);\n\t}\n\n\t/**\n\t * Waits for the i18n module to load and then translates the static page content.\n\t */\n\tasync _initializeTranslations() {\n\t\treturn new Promise((resolve) => {\n\t\t\tdocument.addEventListener(\n\t\t\t\t\"translations-loaded\",\n\t\t\t\t() => {\n\t\t\t\t\twindow.i18n.translatePage();\n\t\t\t\t\tresolve();\n\t\t\t\t},\n\t\t\t\t{once: true}\n\t\t\t);\n\t\t});\n\t}\n\n\t/**\n\t * Locates the yt-dlp executable path from various sources or downloads it.\n\t * @returns {Promise<string>} A promise that resolves with the path to yt-dlp.\n\t */\n\tasync _findOrDownloadYtDlp() {\n\t\tconst hiddenDir = join(homedir(), \".ytDownloader\");\n\t\tconst defaultYtDlpName = platform() === \"win32\" ? \"ytdlp.exe\" : \"ytdlp\";\n\t\tconst defaultYtDlpPath = join(hiddenDir, defaultYtDlpName);\n\t\tconst isMacOS = platform() === \"darwin\";\n\t\tconst isFreeBSD = platform() === \"freebsd\";\n\n\t\tlet executablePath = null;\n\n\t\t// PRIORITY 1: Environment Variable\n\t\tif (process.env.YTDOWNLOADER_YTDLP_PATH) {\n\t\t\tif (existsSync(process.env.YTDOWNLOADER_YTDLP_PATH)) {\n\t\t\t\texecutablePath = process.env.YTDOWNLOADER_YTDLP_PATH;\n\t\t\t} else {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"YTDOWNLOADER_YTDLP_PATH is set, but no file exists there.\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// PRIORITY 2: macOS homebrew\n\t\telse if (isMacOS) {\n\t\t\tconst possiblePaths = [\n\t\t\t\t\"/opt/homebrew/bin/yt-dlp\", // Apple Silicon\n\t\t\t\t\"/usr/local/bin/yt-dlp\", // Intel\n\t\t\t];\n\n\t\t\texecutablePath = possiblePaths.find((p) => existsSync(p));\n\n\t\t\t// If Homebrew check fails, show popup and abort\n\t\t\tif (!executablePath) {\n\t\t\t\t$(CONSTANTS.DOM_IDS.POPUP_BOX_MAC).style.display = \"block\";\n\t\t\t\tconsole.warn(\"Homebrew yt-dlp not found. Prompting user.\");\n\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\n\t\t// PRIORITY 3: FreeBSD\n\t\telse if (isFreeBSD) {\n\t\t\ttry {\n\t\t\t\texecutablePath = execSync(\"which yt-dlp\").toString().trim();\n\t\t\t} catch {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"No yt-dlp found in PATH on FreeBSD. Please install it.\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// PRIORITY 4: LocalStorage or Download (Windows/Linux)\n\t\telse {\n\t\t\tconst storedPath = localStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.YT_DLP_PATH\n\t\t\t);\n\n\t\t\tif (storedPath && existsSync(storedPath)) {\n\t\t\t\texecutablePath = storedPath;\n\t\t\t}\n\t\t\t// Download if missing\n\t\t\telse {\n\t\t\t\texecutablePath = await this.ensureYtDlpBinary(defaultYtDlpPath);\n\t\t\t}\n\t\t}\n\n\t\tlocalStorage.setItem(\n\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.YT_DLP_PATH,\n\t\t\texecutablePath\n\t\t);\n\n\t\t// Auto update\n\t\tthis._runBackgroundUpdate(executablePath, isMacOS);\n\n\t\treturn executablePath;\n\t}\n\n\t/**\n\t * yt-dlp background update\n\t */\n\t_runBackgroundUpdate(executablePath, isMacOS) {\n\t\ttry {\n\t\t\tif (isMacOS) {\n\t\t\t\tconst brewPaths = [\n\t\t\t\t\t\"/opt/homebrew/bin/brew\",\n\t\t\t\t\t\"/usr/local/bin/brew\",\n\t\t\t\t];\n\t\t\t\tconst brewExec = brewPaths.find((p) => existsSync(p)) || \"brew\";\n\n\t\t\t\tconst brewUpdate = spawn(brewExec, [\"upgrade\", \"yt-dlp\"]);\n\n\t\t\t\tbrewUpdate.on(\"error\", (err) =>\n\t\t\t\t\tconsole.error(\"Failed to run 'brew upgrade yt-dlp':\", err)\n\t\t\t\t);\n\t\t\t\tbrewUpdate.stdout.on(\"data\", (data) =>\n\t\t\t\t\tconsole.log(\"yt-dlp brew update:\", data.toString())\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tconst updateProc = spawn(executablePath, [\"-U\"]);\n\n\t\t\t\tupdateProc.on(\"error\", (err) =>\n\t\t\t\t\tconsole.error(\n\t\t\t\t\t\t\"Failed to run background yt-dlp update:\",\n\t\t\t\t\t\terr\n\t\t\t\t\t)\n\t\t\t\t);\n\n\t\t\t\tupdateProc.stdout.on(\"data\", (data) => {\n\t\t\t\t\tconst output = data.toString();\n\t\t\t\t\tconsole.log(\"yt-dlp update check:\", output);\n\n\t\t\t\t\tif (output.toLowerCase().includes(\"updating to\")) {\n\t\t\t\t\t\tthis._showPopup(i18n.__(\"updatingYtdlp\"));\n\t\t\t\t\t} else if (\n\t\t\t\t\t\toutput.toLowerCase().includes(\"updated yt-dlp to\")\n\t\t\t\t\t) {\n\t\t\t\t\t\tthis._showPopup(i18n.__(\"updatedYtdlp\"));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t} catch (err) {\n\t\t\tconsole.warn(\"Error initiating background update:\", err);\n\t\t}\n\t}\n\n\t/**\n\t * Checks for the presence of the yt-dlp binary at the default path.\n\t * If not found, it attempts to download it from GitHub.\n\t *\n\t * @param {string} defaultYtDlpPath The expected path to the yt-dlp binary.\n\t * @returns {Promise<string>} A promise that resolves with the path to the yt-dlp binary.\n\t * @throws {Error} Throws an error if the download fails.\n\t */\n\tasync ensureYtDlpBinary(defaultYtDlpPath) {\n\t\ttry {\n\t\t\tawait promises.access(defaultYtDlpPath);\n\n\t\t\treturn defaultYtDlpPath;\n\t\t} catch {\n\t\t\tconsole.log(\"yt-dlp not found, downloading...\");\n\n\t\t\t$(CONSTANTS.DOM_IDS.POPUP_BOX).style.display = \"block\";\n\t\t\t$(CONSTANTS.DOM_IDS.POPUP_SVG).style.display = \"inline\";\n\t\t\tdocument.querySelector(\"#popupBox p\").textContent = i18n.__(\n\t\t\t\t\"downloadingNecessaryFilesWait\"\n\t\t\t);\n\n\t\t\ttry {\n\t\t\t\tawait YTDlpWrap.downloadFromGithub(\n\t\t\t\t\tdefaultYtDlpPath,\n\t\t\t\t\tundefined,\n\t\t\t\t\tundefined,\n\t\t\t\t\t(progress, _d, _t) => {\n\t\t\t\t\t\t$(\n\t\t\t\t\t\t\tCONSTANTS.DOM_IDS.YTDLP_DOWNLOAD_PROGRESS\n\t\t\t\t\t\t).textContent =\n\t\t\t\t\t\t\ti18n.__(\"progress\") +\n\t\t\t\t\t\t\t`: ${(progress * 100).toFixed(2)}%`;\n\t\t\t\t\t}\n\t\t\t\t);\n\n\t\t\t\t$(CONSTANTS.DOM_IDS.POPUP_BOX).style.display = \"none\";\n\n\t\t\t\tlocalStorage.setItem(\n\t\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.YT_DLP_PATH,\n\t\t\t\t\tdefaultYtDlpPath\n\t\t\t\t);\n\n\t\t\t\treturn defaultYtDlpPath;\n\t\t\t} catch (downloadError) {\n\t\t\t\t$(CONSTANTS.DOM_IDS.YTDLP_DOWNLOAD_PROGRESS).textContent = \"\";\n\n\t\t\t\tconsole.error(\"Failed to download yt-dlp:\", downloadError);\n\n\t\t\t\tdocument.querySelector(\"#popupBox p\").textContent = i18n.__(\n\t\t\t\t\t\"errorFailedFileDownload\"\n\t\t\t\t);\n\t\t\t\t$(CONSTANTS.DOM_IDS.POPUP_SVG).style.display = \"none\";\n\n\t\t\t\tconst tryAgainBtn = document.createElement(\"button\");\n\t\t\t\ttryAgainBtn.id = \"tryBtn\";\n\t\t\t\ttryAgainBtn.textContent = i18n.__(\"tryAgain\");\n\t\t\t\ttryAgainBtn.addEventListener(\"click\", () => {\n\t\t\t\t\t// TODO: Improve it\n\t\t\t\t\tipcRenderer.send(\"reload\");\n\t\t\t\t});\n\t\t\t\tdocument.getElementById(\"popup\").appendChild(tryAgainBtn);\n\n\t\t\t\tthrow new Error(\"Failed to download yt-dlp.\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Locates the ffmpeg executable path.\n\t * @returns {Promise<string>} A promise that resolves with the path to ffmpeg.\n\t */\n\tasync _findFfmpeg() {\n\t\t// Priority 1: Environment Variable\n\t\tif (process.env.YTDOWNLOADER_FFMPEG_PATH) {\n\t\t\tif (existsSync(process.env.YTDOWNLOADER_FFMPEG_PATH)) {\n\t\t\t\treturn process.env.YTDOWNLOADER_FFMPEG_PATH;\n\t\t\t}\n\t\t\tthrow new Error(\n\t\t\t\t\"YTDOWNLOADER_FFMPEG_PATH is set, but no file exists there.\"\n\t\t\t);\n\t\t}\n\n\t\t// Priority 2: System-installed (FreeBSD)\n\t\tif (platform() === \"freebsd\") {\n\t\t\ttry {\n\t\t\t\treturn execSync(\"which ffmpeg\").toString().trim();\n\t\t\t} catch {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\"No ffmpeg found in PATH on FreeBSD. App may not work correctly.\"\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\t// Priority 3: Bundled ffmpeg\n\t\treturn join(__dirname, \"..\", \"ffmpeg\", \"bin\");\n\t}\n\n\t/**\n\t * Determines the JavaScript runtime path for yt-dlp.\n\t * @returns {Promise<string>} A promise that resolves with the JS runtime path.\n\t */\n\tasync _getJsRuntimePath() {\n\t\tconst exeName = \"node\";\n\n\t\tif (process.env.YTDOWNLOADER_NODE_PATH) {\n\t\t\tif (existsSync(process.env.YTDOWNLOADER_NODE_PATH)) {\n\t\t\t\treturn `$node:\"${process.env.YTDOWNLOADER_NODE_PATH}\"`;\n\t\t\t}\n\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (process.env.YTDOWNLOADER_DENO_PATH) {\n\t\t\tif (existsSync(process.env.YTDOWNLOADER_DENO_PATH)) {\n\t\t\t\treturn `$deno:\"${process.env.YTDOWNLOADER_DENO_PATH}\"`;\n\t\t\t}\n\n\t\t\treturn \"\";\n\t\t}\n\n\t\tif (platform() === \"darwin\") {\n\t\t\tconst possiblePaths = [\n\t\t\t\t\"/opt/homebrew/bin/deno\",\n\t\t\t\t\"/usr/local/bin/deno\",\n\t\t\t];\n\n\t\t\tfor (const p of possiblePaths) {\n\t\t\t\tif (existsSync(p)) {\n\t\t\t\t\treturn `deno:\"${p}\"`;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconsole.log(\"No Deno installation found\");\n\n\t\t\treturn \"\";\n\t\t}\n\n\t\tlet jsRuntimePath = join(__dirname, \"..\", exeName);\n\n\t\tif (platform() === \"win32\") {\n\t\t\tjsRuntimePath = join(__dirname, \"..\", `${exeName}.exe`);\n\t\t}\n\n\t\tif (existsSync(jsRuntimePath)) {\n\t\t\treturn `${exeName}:\"${jsRuntimePath}\"`;\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}\n\n\t/**\n\t * Loads various settings from localStorage into the application state.\n\t */\n\t_loadSettings() {\n\t\tconst prefs = this.state.preferences;\n\t\tprefs.videoQuality =\n\t\t\tNumber(\n\t\t\t\tlocalStorage.getItem(\n\t\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.PREFERRED_VIDEO_QUALITY\n\t\t\t\t)\n\t\t\t) || 1080;\n\t\tprefs.audioQuality =\n\t\t\tlocalStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.PREFERRED_AUDIO_QUALITY\n\t\t\t) || \"\";\n\t\tprefs.videoCodec =\n\t\t\tlocalStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.PREFERRED_VIDEO_CODEC\n\t\t\t) || \"avc1\";\n\t\tprefs.showMoreFormats =\n\t\t\tlocalStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.SHOW_MORE_FORMATS\n\t\t\t) === \"true\";\n\t\tprefs.proxy =\n\t\t\tlocalStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEYS.PROXY) || \"\";\n\t\tprefs.browserForCookies =\n\t\t\tlocalStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.BROWSER_COOKIES\n\t\t\t) || \"\";\n\t\tprefs.customYtDlpArgs =\n\t\t\tlocalStorage.getItem(\n\t\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.YT_DLP_CUSTOM_ARGS\n\t\t\t) || \"\";\n\t\tprefs.configPath = localStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEYS.CONFIG_PATH) || \"\";\n\n\t\tconst maxDownloads = Number(\n\t\t\tlocalStorage.getItem(CONSTANTS.LOCAL_STORAGE_KEYS.MAX_DOWNLOADS)\n\t\t);\n\t\tthis.state.maxActiveDownloads = maxDownloads >= 1 ? maxDownloads : 5;\n\n\t\t// Update UI with loaded settings\n\t\t$(CONSTANTS.DOM_IDS.CUSTOM_ARGS_INPUT).value = prefs.customYtDlpArgs;\n\n\t\tconst downloadDir = localStorage.getItem(\n\t\t\tCONSTANTS.LOCAL_STORAGE_KEYS.DOWNLOAD_PATH\n\t\t);\n\n\t\tif (downloadDir) {\n\t\t\tthis.state.downloadDir = downloadDir;\n\t\t\t$(CONSTANTS.DOM_IDS.PATH_DISPLAY).textContent = downloadDir;\n\t\t}\n\t}\n\n\t/**\n\t * Attaches all necessary event listeners for the UI.\n\t */\n\t_addEventListeners() {\n\t\t$(CONSTANTS.DOM_IDS.PASTE_URL_BTN).addEventListener(\"click\", () =>\n\t\t\tthis.pasteAndGetInfo()\n\t\t);\n\t\tdocument.addEventListener(\"keydown\", (event) => {\n\t\t\tif (\n\t\t\t\t((event.ctrlKey && event.key === \"v\") ||\n\t\t\t\t\t(event.metaKey &&\n\t\t\t\t\t\tevent.key === \"v\" &&\n\t\t\t\t\t\tplatform() === \"darwin\")) &&\n\t\t\t\tdocument.activeElement.tagName !== \"INPUT\" &&\n\t\t\t\tdocument.activeElement.tagName !== \"TEXTAREA\"\n\t\t\t) {\n\t\t\t\t$(CONSTANTS.DOM_IDS.PASTE_URL_BTN).classList.add(\"active\");\n\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t$(CONSTANTS.DOM_IDS.PASTE_URL_BTN).classList.remove(\n\t\t\t\t\t\t\"active\"\n\t\t\t\t\t);\n\t\t\t\t}, 150);\n\n\t\t\t\tthis.pasteAndGetInfo();\n\t\t\t}\n\t\t});\n\n\t\t// Download buttons\n\t\t$(CONSTANTS.DOM_IDS.VIDEO_DOWNLOAD_BTN).addEventListener(\"click\", () =>\n\t\t\tthis.handleDownloadRequest(\"video\")\n\t\t);\n\t\t$(CONSTANTS.DOM_IDS.AUDIO_DOWNLOAD_BTN).addEventListener(\"click\", () =>\n\t\t\tthis.handleDownloadRequest(\"audio\")\n\t\t);\n\t\t$(CONSTANTS.DOM_IDS.EXTRACT_BTN).addEventListener(\"click\", () =>\n\t\t\tthis.handleDownloadRequest(\"extract\")\n\t\t);\n\n\t\t// UI controls\n\t\t$(CONSTANTS.DOM_IDS.CLOSE_HIDDEN_BTN).addEventListener(\"click\", () =>\n\t\t\tthis._hideInfoPanel()\n\t\t);\n\t\t$(CONSTANTS.DOM_IDS.SELECT_LOCATION_BTN).addEventListener(\"click\", () =>\n\t\t\tipcRenderer.send(\"select-location-main\", \"\")\n\t\t);\n\t\t$(CONSTANTS.DOM_IDS.CLEAR_BTN).addEventListener(\"click\", () =>\n\t\t\tthis._clearAllDownloaded()\n\t\t);\n\n\t\t// Error details\n\t\t$(CONSTANTS.DOM_IDS.ERROR_DETAILS).addEventListener(\"click\", (e) => {\n\t\t\t// @ts-ignore\n\t\t\tclipboard.writeText(e.target.innerText);\n\t\t\tthis._showPopup(i18n.__(\"copiedText\"), false);\n\t\t});\n\n\t\t$(CONSTANTS.DOM_IDS.QUIT_APP_BTN).addEventListener(\"click\", () => {\n\t\t\tipcRenderer.send(\"quit\", \"quit\");\n\t\t});\n\n\t\t// IPC listeners\n\t\tipcRenderer.on(\"link\", (event, text) => this.getInfo(text));\n\t\tipcRenderer.on(\"downloadPath\", (event, downloadPath) => {\n\t\t\ttry {\n\t\t\t\taccessSync(downloadPath[0], constants.W_OK);\n\n\t\t\t\tconst newPath = downloadPath[0];\n\t\t\t\t$(CONSTANTS.DOM_IDS.PATH_DISPLAY).textContent = newPath;\n\t\t\t\tthis.state.downloadDir = newPath;\n\t\t\t} catch (error) {\n\t\t\t\tconsole.log(error);\n\t\t\t\tthis._showPopup(i18n.__(\"unableToAccessDir\"), true);\n\t\t\t}\n\t\t});\n\n\t\tipcRenderer.on(\"download-progress\", (_event, percent) => {\n\t\t\tif (percent) {\n\t\t\t\tconst popup = $(CONSTANTS.DOM_IDS.UPDATE_POPUP);\n\t\t\t\tconst textEl = $(CONSTANTS.DOM_IDS.UPDATE_POPUP_PROGRESS);\n\t\t\t\tconst barEl = $(CONSTANTS.DOM_IDS.UPDATE_POPUP_BAR);\n\n\t\t\t\tpopup.style.display = \"flex\";\n\t\t\t\ttextEl.textContent = `${percent.toFixed(1)}%`;\n\t\t\t\tbarEl.style.width = `${percent}%`;\n\t\t\t}\n\t\t});\n\n\t\tipcRenderer.on(\"update-downloaded\", (_event, _) => {\n\t\t\t$(CONSTANTS.DOM_IDS.UPDATE_POPUP).style.display = \"none\";\n\t\t});\n\n\t\t// Menu Listeners\n\t\tconst menuMapping = {\n\t\t\t[CONSTANTS.DOM_IDS.PREFERENCE_WIN]: \"/preferences.html\",\n\t\t\t[CONSTANTS.DOM_IDS.ABOUT_WIN]: \"/about.html\",\n\t\t\t[CONSTANTS.DOM_IDS.HISTORY_WIN]: \"/history.html\",\n\t\t};\n\t\tconst windowMapping = {\n\t\t\t[CONSTANTS.DOM_IDS.PLAYLIST_WIN]: \"/playlist.html\",\n\t\t\t[CONSTANTS.DOM_IDS.COMPRESSOR_WIN]: \"/compressor.html\",\n\t\t};\n\n\t\tObject.entries(menuMapping).forEach(([id, page]) => {\n\t\t\t$(id)?.addEventListener(\"click\", () => {\n\t\t\t\tthis._closeMenu();\n\t\t\t\tipcRenderer.send(\"load-page\", join(__dirname, page));\n\t\t\t});\n\t\t});\n\n\t\tObject.entries(windowMapping).forEach(([id, page]) => {\n\t\t\t$(id)?.addEventListener(\"click\", () => {\n\t\t\t\tthis._closeMenu();\n\t\t\t\tipcRenderer.send(\"load-win\", join(__dirname, page));\n\t\t\t});\n\t\t});\n\n\t\tconst minSlider = $(CONSTANTS.DOM_IDS.MIN_SLIDER);\n\t\tconst maxSlider = $(CONSTANTS.DOM_IDS.MAX_SLIDER);\n\n\t\tminSlider.addEventListener(\"input\", () =>\n\t\t\tthis._updateSliderUI(minSlider)\n\t\t);\n\t\tmaxSlider.addEventListener(\"input\", () =>\n\t\t\tthis._updateSliderUI(maxSlider)\n\t\t);\n\n\t\t$(CONSTANTS.DOM_IDS.START_TIME).addEventListener(\n\t\t\t\"change\",\n\t\t\tthis._handleTimeInputChange\n\t\t);\n\t\t$(CONSTANTS.DOM_IDS.END_TIME).addEventListener(\n\t\t\t\"change\",\n\t\t\tthis._handleTimeInputChange\n\t\t);\n\n\t\tthis._updateSliderUI(null);\n\t}\n\n\t// --- Public Methods ---\n\n\t/**\n\t * Pastes URL from clipboard and initiates fetching video info.\n\t */\n\tpasteAndGetInfo() {\n\t\tthis.getInfo(clipboard.readText());\n\t}\n\n\t/**\n\t * Fetches video metadata from a given URL.\n\t * @param {string} url The video URL.\n\t */\n\tasync getInfo(url) {\n\t\tthis._loadSettings();\n\t\tthis._defaultVideoToggle();\n\t\tthis._resetUIForNewLink();\n\t\tthis.state.videoInfo.url = url;\n\n\t\ttry {\n\t\t\tconst metadata = await this._fetchVideoMetadata(url);\n\t\t\tconsole.log(metadata);\n\n\t\t\tconst durationInt =\n\t\t\t\tmetadata.duration == null ? null : Math.ceil(metadata.duration);\n\n\t\t\tthis.state.videoInfo = {\n\t\t\t\t...this.state.videoInfo,\n\t\t\t\tid: metadata.id,\n\t\t\t\ttitle: metadata.title,\n\t\t\t\tthumbnail: metadata.thumbnail,\n\t\t\t\tduration: durationInt,\n\t\t\t\textractor_key: metadata.extractor_key,\n\t\t\t};\n\t\t\tthis.setVideoLength(durationInt);\n\t\t\tthis._populateFormatSelectors(metadata.formats || []);\n\t\t\tthis._displayInfoPanel();\n\t\t} catch (error) {\n\t\t\tif (\n\t\t\t\terror.message.includes(\"js-runtimes\") &&\n\t\t\t\terror.message.includes(\"no such option\")\n\t\t\t) {\n\t\t\t\tthis._showError(i18n.__(\"ytDlpUpdateRequired\"), url);\n\t\t\t} else {\n\t\t\t\tthis._showError(error.message, url);\n\t\t\t}\n\t\t} finally {\n\t\t\t$(CONSTANTS.DOM_IDS.LOADING_WRAPPER).style.display = \"none\";\n\t\t}\n\t}\n\n\t/**\n\t * Handles a download request, either starting it immediately or queuing it.\n\t * @param {'video' | 'audio' | 'extract'} type The type of download.\n\t */\n\thandleDownloadRequest(type) {\n\t\tthis._updateDownloadOptionsFromUI();\n\n\t\tconst downloadJob = {\n\t\t\ttype,\n\t\t\turl: this.state.videoInfo.url,\n\t\t\ttitle: this.state.videoInfo.title,\n\t\t\tthumbnail: this.state.videoInfo.thumbnail,\n\t\t\toptions: {...this.state.downloadOptions},\n\t\t\t// Capture UI values at the moment of click\n\t\t\tuiSnapshot: {\n\t\t\t\tvideoFormat: $(CONSTANTS.DOM_IDS.VIDEO_FORMAT_SELECT).value,\n\t\t\t\taudioForVideoFormat: $(\n\t\t\t\t\tCONSTANTS.DOM_IDS.AUDIO_FOR_VIDEO_FORMAT_SELECT\n\t\t\t\t).value,\n\t\t\t\taudioFormat: $(CONSTANTS.DOM_IDS.AUDIO_FORMAT_SELECT).value,\n\t\t\t\textractFormat: $(CONSTANTS.DOM_IDS.EXTRACT_SELECTION).value,\n\t\t\t\textractQuality: $(CONSTANTS.DOM_IDS.EXTRACT_QUALITY_SELECT)\n\t\t\t\t\t.value,\n\t\t\t},\n\t\t};\n\n\t\tif (this.state.currentDownloads < this.state.maxActiveDownloads) {\n\t\t\tthis._startDownload(downloadJob);\n\t\t} else {\n\t\t\tthis._queueDownload(downloadJob);\n\t\t}\n\t\tthis._hideInfoPanel();\n\t}\n\n\t/**\n\t * Executes yt-dlp to get video metadata in JSON format.\n\t * @param {string} url The video URL.\n\t * @returns {Promise<object>} A promise that resolves with the parsed JSON metadata.\n\t */\n\t_fetchVideoMetadata(url) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst {proxy, browserForCookies, configPath} =\n\t\t\t\tthis.state.preferences;\n\t\t\tconst args = [\n\t\t\t\t\"-j\",\n\t\t\t\t\"--no-playlist\",\n\t\t\t\t\"--no-warnings\",\n\t\t\t\tproxy ? \"--proxy\" : \"\",\n\t\t\t\tproxy,\n\t\t\t\tbrowserForCookies ? \"--cookies-from-browser\" : \"\",\n\t\t\t\tbrowserForCookies,\n\t\t\t\tthis.state.jsRuntimePath\n\t\t\t\t\t? `--no-js-runtimes --js-runtime ${this.state.jsRuntimePath}`\n\t\t\t\t\t: \"\",\n\t\t\t\tconfigPath ? \"--config-location\" : \"\",\n\t\t\t\tconfigPath ? `\"${configPath}\"` : \"\",\n\t\t\t\t`\"${url}\"`,\n\t\t\t].filter(Boolean);\n\n\t\t\tconst process = this.state.ytDlp.exec(args, {shell: true});\n\n\t\t\tconsole.log(\n\t\t\t\"Spawned yt-dlp with args:\",\n\t\t\tprocess.ytDlpProcess.spawnargs.join(\" \")\n\t\t);\n\n\t\t\tlet stdout = \"\";\n\t\t\tlet stderr = \"\";\n\n\t\t\tprocess.ytDlpProcess.stdout.on(\"data\", (data) => {\n\t\t\t\tstdout += data;\n\t\t\t});\n\t\t\tprocess.ytDlpProcess.stderr.on(\"data\", (data) => (stderr += data));\n\n\t\t\tprocess.on(\"close\", () => {\n\t\t\t\tif (stdout) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tresolve(JSON.parse(stdout));\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treject(\n\t\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\t\"Failed to parse yt-dlp JSON output: \" +\n\t\t\t\t\t\t\t\t\t(stderr || e.message)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treject(\n\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\tstderr || `yt-dlp exited with a non-zero code.`\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tprocess.on(\"error\", (err) => reject(err));\n\t\t});\n\t}\n\n\t/**\n\t * Starts the download process for a given job.\n\t * @param {object} job The download job object.\n\t */\n\t_startDownload(job) {\n\t\tthis.state.currentDownloads++;\n\t\tconst randomId = \"item_\" + Math.random().toString(36).substring(2, 12);\n\n\t\tconst {downloadArgs, finalFilename, finalExt} =\n\t\t\tthis._prepareDownloadArgs(job);\n\n\t\tthis._createDownloadUI(randomId, job);\n\n\t\tconst controller = new AbortController();\n\t\tthis.state.downloadControllers.set(randomId, controller);\n\n\t\tconst downloadProcess = this.state.ytDlp.exec(downloadArgs, {\n\t\t\tshell: true,\n\t\t\tdetached: false,\n\t\t\tsignal: controller.signal,\n\t\t});\n\n\t\tconsole.log(\n\t\t\t\"Spawned yt-dlp with args:\",\n\t\t\tdownloadProcess.ytDlpProcess.spawnargs.join(\" \")\n\t\t);\n\n\t\t// Attach event listeners\n\t\tdownloadProcess\n\t\t\t.on(\"progress\", (progress) => {\n\t\t\t\tthis._updateProgressUI(randomId, progress);\n\t\t\t})\n\t\t\t.once(\"ytDlpEvent\", () => {\n\t\t\t\tconst el = $(`${randomId}_prog`);\n\t\t\t\tif (el) el.textContent = i18n.__(\"downloading\");\n\t\t\t})\n\t\t\t// .on(\"ytDlpEvent\", (eventType, eventData) => {\n\t\t\t// \tconsole.log(eventData)\n\t\t\t// })\n\t\t\t.once(\"close\", (code) => {\n\t\t\t\tthis._handleDownloadCompletion(\n\t\t\t\t\tcode,\n\t\t\t\t\trandomId,\n\t\t\t\t\tfinalFilename,\n\t\t\t\t\tfinalExt,\n\t\t\t\t\tjob.thumbnail\n\t\t\t\t);\n\t\t\t})\n\t\t\t.once(\"error\", (error) => {\n\t\t\t\tthis.state.downloadedItems.add(randomId);\n\t\t\t\tthis._updateClearAllButton();\n\n\t\t\t\tthis._handleDownloadError(error, randomId);\n\t\t\t});\n\t}\n\n\t/**\n\t * Queues a download job if the maximum number of active downloads is reached.\n\t * @param {object} job The download job object.\n\t */\n\t_queueDownload(job) {\n\t\tconst randomId = \"queue_\" + Math.random().toString(36).substring(2, 12);\n\t\tthis.state.downloadQueue.push({...job, queueId: randomId});\n\t\tconst itemHTML = `\n            <div class=\"item\" id=\"${randomId}\">\n                <div class=\"itemIconBox\">\n                    <img src=\"${\n\t\t\t\t\t\tjob.thumbnail || \"../assets/images/thumb.png\"\n\t\t\t\t\t}\" alt=\"thumbnail\" class=\"itemIcon\" crossorigin=\"anonymous\">\n                    <span class=\"itemType\">${i18n.__(\n\t\t\t\t\t\tjob.type === \"video\" ? \"video\" : \"audio\"\n\t\t\t\t\t)}</span>\n                </div>\n                <div class=\"itemBody\">\n                    <div class=\"itemTitle\">${job.title}</div>\n                    <p>${i18n.__(\"preparing\")}</p>\n                </div>\n            </div>`;\n\t\t$(CONSTANTS.DOM_IDS.DOWNLOAD_LIST).insertAdjacentHTML(\n\t\t\t\"beforeend\",\n\t\t\titemHTML\n\t\t);\n\t}\n\n\t/**\n\t * Checks the queue and starts the next download if a slot is available.\n\t */\n\t_processQueue() {\n\t\tif (\n\t\t\tthis.state.downloadQueue.length > 0 &&\n\t\t\tthis.state.currentDownloads < this.state.maxActiveDownloads\n\t\t) {\n\t\t\tconst nextJob = this.state.downloadQueue.shift();\n\t\t\t// Remove the pending UI element\n\t\t\t$(nextJob.queueId)?.remove();\n\t\t\tthis._startDownload(nextJob);\n\t\t}\n\t}\n\n\t/**\n\t * Prepares the command-line arguments for yt-dlp based on the download job.\n\t * @param {object} job The download job object.\n\t * @returns {{downloadArgs: string[], finalFilename: string, finalExt: string}}\n\t */\n\t_prepareDownloadArgs(job) {\n\t\tconst {type, url, title, options, uiSnapshot} = job;\n\t\tconst {rangeOption, rangeCmd, subs, subLangs} = options;\n\t\tconst {proxy, browserForCookies, configPath} = this.state.preferences;\n\n\t\tlet format_id, ext, audioForVideoFormat_id, audioFormat;\n\n\t\tif (type === \"video\") {\n\t\t\tconst [videoFid, videoExt, _, videoCodec] =\n\t\t\t\tuiSnapshot.videoFormat.split(\"|\");\n\t\t\tconst [audioFid, audioExt] =\n\t\t\t\tuiSnapshot.audioForVideoFormat.split(\"|\");\n\n\t\t\tformat_id = videoFid;\n\t\t\taudioForVideoFormat_id = audioFid;\n\n\t\t\tconst finalAudioExt = audioExt === \"webm\" ? \"opus\" : audioExt;\n\n\t\t\text = videoExt;\n\n\t\t\tif (videoExt === \"mp4\" && finalAudioExt === \"opus\") {\n\t\t\t\tif (videoCodec.includes(\"avc\")) ext = \"mkv\";\n\t\t\t\telse if (videoCodec.includes(\"av01\")) ext = \"webm\";\n\t\t\t} else if (\n\t\t\t\tvideoExt === \"webm\" &&\n\t\t\t\t[\"m4a\", \"mp4\"].includes(finalAudioExt)\n\t\t\t) {\n\t\t\t\text = \"mkv\";\n\t\t\t}\n\n\t\t\taudioFormat =\n\t\t\t\taudioForVideoFormat_id === \"none\"\n\t\t\t\t\t? \"\"\n\t\t\t\t\t: `+${audioForVideoFormat_id}`;\n\t\t} else if (type === \"audio\") {\n\t\t\t[format_id, ext] = uiSnapshot.audioFormat.split(\"|\");\n\t\t\text = ext === \"webm\" ? \"opus\" : ext;\n\t\t} else {\n\t\t\t// type === 'extract'\n\t\t\text =\n\t\t\t\t{alac: \"m4a\"}[uiSnapshot.extractFormat] ||\n\t\t\t\tuiSnapshot.extractFormat;\n\t\t}\n\n\t\tconst invalidChars =\n\t\t\tplatform() === \"win32\" ? /[<>:\"/\\\\|?*[\\]`#]/g : /[\"/`#]/g;\n\t\tlet finalFilename = title\n\t\t\t.replace(invalidChars, \"\")\n\t\t\t.trim()\n\t\t\t.slice(0, 100);\n\t\tif (finalFilename.startsWith(\".\")) {\n\t\t\tfinalFilename = finalFilename.substring(1);\n\t\t}\n\t\tif (rangeCmd) {\n\t\t\tlet rangeTxt = rangeCmd.replace(\"*\", \"\");\n\t\t\tif (platform() === \"win32\") rangeTxt = rangeTxt.replace(/:/g, \"_\");\n\t\t\tfinalFilename += ` [${rangeTxt}]`;\n\t\t}\n\n\t\tconst outputPath = `\"${join(\n\t\t\tthis.state.downloadDir,\n\t\t\t`${finalFilename}.${ext}`\n\t\t)}\"`;\n\n\t\tconst baseArgs = [\n\t\t\t\"--no-playlist\",\n\t\t\t\"--no-mtime\",\n\t\t\tbrowserForCookies ? \"--cookies-from-browser\" : \"\",\n\t\t\tbrowserForCookies,\n\t\t\tproxy ? \"--proxy\" : \"\",\n\t\t\tproxy,\n\t\t\tconfigPath ? \"--config-location\" : \"\",\n\t\t\tconfigPath ? `\"${configPath}\"` : \"\",\n\t\t\t\"--ffmpeg-location\",\n\t\t\t`\"${this.state.ffmpegPath}\"`,\n\t\t\tthis.state.jsRuntimePath\n\t\t\t\t? `--no-js-runtimes --js-runtime ${this.state.jsRuntimePath}`\n\t\t\t\t: \"\",\n\t\t].filter(Boolean);\n\n\t\tif (type === \"audio\") {\n\t\t\tif (ext === \"m4a\" || ext === \"mp3\" || ext === \"mp4\") {\n\t\t\t\tbaseArgs.unshift(\"--embed-thumbnail\");\n\t\t\t}\n\t\t} else if (type === \"extract\") {\n\t\t\tif (ext === \"mp3\" || ext === \"m4a\") {\n\t\t\t\tbaseArgs.unshift(\"--embed-thumbnail\");\n\t\t\t}\n\t\t}\n\n\t\tlet downloadArgs;\n\t\tif (type === \"extract\") {\n\t\t\tdownloadArgs = [\n\t\t\t\t\"-x\",\n\t\t\t\t\"--audio-format\",\n\t\t\t\tuiSnapshot.extractFormat,\n\t\t\t\t\"--audio-quality\",\n\t\t\t\tuiSnapshot.extractQuality,\n\t\t\t\t\"-o\",\n\t\t\t\toutputPath,\n\t\t\t\t...baseArgs,\n\t\t\t];\n\t\t} else {\n\t\t\tconst formatString =\n\t\t\t\ttype === \"video\" ? `${format_id}${audioFormat}` : format_id;\n\t\t\tdownloadArgs = [\"-f\", formatString, \"-o\", outputPath, ...baseArgs];\n\t\t}\n\n\t\tif (subs) downloadArgs.push(subs);\n\t\tif (subLangs) downloadArgs.push(subLangs);\n\t\tif (rangeOption) downloadArgs.push(rangeOption, rangeCmd);\n\n\t\tconst customArgsString = $(\n\t\t\tCONSTANTS.DOM_IDS.CUSTOM_ARGS_INPUT\n\t\t).value.trim();\n\t\tif (customArgsString) {\n\t\t\tconst customArgs = customArgsString.split(/\\s+/);\n\t\t\tdownloadArgs.push(...customArgs);\n\t\t}\n\n\t\tdownloadArgs.push(`\"${url}\"`);\n\n\t\treturn {downloadArgs, finalFilename, finalExt: ext};\n\t}\n\n\t/**\n\t * Handles the completion of a download process.\n\t */\n\t_handleDownloadCompletion(code, randomId, filename, ext, thumbnail) {\n\t\tthis.state.currentDownloads--;\n\t\tthis.state.downloadControllers.delete(randomId);\n\n\t\tif (code === 0) {\n\t\t\tthis._showDownloadSuccessUI(randomId, filename, ext, thumbnail);\n\t\t\tthis.state.downloadedItems.add(randomId);\n\t\t\tthis._updateClearAllButton();\n\t\t} else if (code !== null) {\n\t\t\t// code is null if aborted, so only show error if it's a real exit code\n\t\t\tthis._handleDownloadError(\n\t\t\t\tnew Error(`Download process exited with code ${code}.`),\n\t\t\t\trandomId\n\t\t\t);\n\t\t}\n\n\t\tthis._processQueue();\n\n\t\tif ($(CONSTANTS.DOM_IDS.QUIT_CHECKED).checked) {\n\t\t\tipcRenderer.send(\"quit\", \"quit\");\n\t\t}\n\t}\n\n\t/**\n\t * Handles an error during the download process.\n\t */\n\t_handleDownloadError(error, randomId) {\n\t\tif (\n\t\t\terror.name === \"AbortError\" ||\n\t\t\terror.message.includes(\"AbortError\")\n\t\t) {\n\t\t\tconsole.log(`Download ${randomId} was aborted.`);\n\t\t\tthis.state.currentDownloads = Math.max(\n\t\t\t\t0,\n\t\t\t\tthis.state.currentDownloads - 1\n\t\t\t);\n\t\t\tthis.state.downloadControllers.delete(randomId);\n\t\t\tthis._processQueue();\n\t\t\treturn; // Don't treat user cancellation as an error\n\t\t}\n\t\tthis.state.currentDownloads--;\n\t\tthis.state.downloadControllers.delete(randomId);\n\t\tconsole.error(\"Download Error:\", error);\n\t\tconst progressEl = $(`${randomId}_prog`);\n\t\tif (progressEl) {\n\t\t\tprogressEl.textContent = i18n.__(\"errorHoverForDetails\");\n\t\t\tprogressEl.title = error.message;\n\t\t}\n\t\tthis._processQueue();\n\t}\n\n\t/**\n\t * Updates the download options state from the UI elements.\n\t */\n\t_updateDownloadOptionsFromUI() {\n\t\tconst startTime = $(CONSTANTS.DOM_IDS.START_TIME).value;\n\t\tconst endTime = $(CONSTANTS.DOM_IDS.END_TIME).value;\n\t\tconst duration = this.state.videoInfo.duration;\n\n\t\tconst startSeconds = this.parseTime(startTime);\n\t\tconst endSeconds = this.parseTime(endTime);\n\n\t\tif (\n\t\t\tstartSeconds === 0 &&\n\t\t\t(endSeconds === duration || endSeconds === 0)\n\t\t) {\n\t\t\tthis.state.downloadOptions.rangeCmd = \"\";\n\t\t\tthis.state.downloadOptions.rangeOption = \"\";\n\t\t} else {\n\t\t\tconst start = startTime || \"0\";\n\t\t\tconst end = endTime || \"inf\";\n\t\t\tthis.state.downloadOptions.rangeCmd = `*${start}-${end}`;\n\t\t\tthis.state.downloadOptions.rangeOption = \"--download-sections\";\n\t\t}\n\n\t\tif ($(CONSTANTS.DOM_IDS.SUB_CHECKED).checked) {\n\t\t\tthis.state.downloadOptions.subs = \"--write-subs\";\n\t\t\tthis.state.downloadOptions.subLangs = \"--sub-langs all\";\n\t\t} else {\n\t\t\tthis.state.downloadOptions.subs = \"\";\n\t\t\tthis.state.downloadOptions.subLangs = \"\";\n\t\t}\n\t}\n\n\t/**\n\t * Resets the UI state for a new link.\n\t */\n\t_resetUIForNewLink() {\n\t\tthis._hideInfoPanel();\n\t\t$(CONSTANTS.DOM_IDS.LOADING_WRAPPER).style.display = \"flex\";\n\t\t$(CONSTANTS.DOM_IDS.INCORRECT_MSG).textContent = \"\";\n\t\t$(CONSTANTS.DOM_IDS.ERROR_BTN).style.display = \"none\";\n\t\t$(CONSTANTS.DOM_IDS.ERROR_DETAILS).style.display = \"none\";\n\t\t$(CONSTANTS.DOM_IDS.VIDEO_FORMAT_SELECT).innerHTML = \"\";\n\t\t$(CONSTANTS.DOM_IDS.AUDIO_FORMAT_SELECT).innerHTML = \"\";\n\t\tconst noAudioTxt = i18n.__(\"noAudio\");\n\t\t$(\n\t\t\tCONSTANTS.DOM_IDS.AUDIO_FOR_VIDEO_FORMAT_SELECT\n\t\t).innerHTML = `<option value=\"none|none\">${noAudioTxt}</option>`;\n\t}\n\n\t/**\n\t * Populates the video and audio format <select> elements.\n\t * @param {Array} formats The formats array from yt-dlp metadata.\n\t */\n\t_populateFormatSelectors(formats) {\n\t\tconst videoSelect = $(CONSTANTS.DOM_IDS.VIDEO_FORMAT_SELECT);\n\t\tconst audioSelect = $(CONSTANTS.DOM_IDS.AUDIO_FORMAT_SELECT);\n\t\tconst audioForVideoSelect = $(\n\t\t\tCONSTANTS.DOM_IDS.AUDIO_FOR_VIDEO_FORMAT_SELECT\n\t\t);\n\n\t\tconst NBSP = \" \";\n\n\t\tlet maxVideoQualityLen = 0;\n\t\tlet maxAudioQualityLen = 0;\n\n\t\tformats.forEach((format) => {\n\t\t\tif (format.video_ext !== \"none\" && format.vcodec !== \"none\") {\n\t\t\t\tconst quality = `${format.height || \"???\"}p${\n\t\t\t\t\tformat.fps === 60 ? \"60\" : \"\"\n\t\t\t\t}`;\n\t\t\t\tif (quality.length > maxVideoQualityLen) {\n\t\t\t\t\tmaxVideoQualityLen = quality.length;\n\t\t\t\t}\n\t\t\t} else if (\n\t\t\t\tformat.acodec !== \"none\" &&\n\t\t\t\tformat.video_ext === \"none\"\n\t\t\t) {\n\t\t\t\tconst formatNote =\n\t\t\t\t\ti18n.__(format.format_note) || i18n.__(\"unknownQuality\");\n\t\t\t\tif (formatNote.length > maxAudioQualityLen) {\n\t\t\t\t\tmaxAudioQualityLen = formatNote.length;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tconst videoQualityPadding = maxVideoQualityLen;\n\t\tconst audioQualityPadding = maxAudioQualityLen;\n\n\t\tconst extPadding = 5; // \"mp4\", \"webm\"\n\t\tconst vcodecPadding = 5; // \"avc1\", \"vp9\"\n\t\tconst filesizePadding = 10; // \"12.48 MB\"\n\n\t\tconst {videoQuality, videoCodec, showMoreFormats} =\n\t\t\tthis.state.preferences;\n\t\tlet bestMatchHeight = 0;\n\n\t\tformats.forEach((f) => {\n\t\t\tif (\n\t\t\t\tf.height &&\n\t\t\t\tf.height <= videoQuality &&\n\t\t\t\tf.height > bestMatchHeight &&\n\t\t\t\tf.video_ext !== \"none\"\n\t\t\t) {\n\t\t\t\tbestMatchHeight = f.height;\n\t\t\t}\n\t\t});\n\t\tif (bestMatchHeight === 0 && formats.length > 0) {\n\t\t\tbestMatchHeight = Math.max(\n\t\t\t\t...formats.filter((f) => f.height).map((f) => f.height)\n\t\t\t);\n\t\t}\n\t\tconst availableCodecs = new Set(\n\t\t\tformats\n\t\t\t\t.filter((f) => f.height === bestMatchHeight && f.vcodec)\n\t\t\t\t.map((f) => f.vcodec.split(\".\")[0])\n\t\t);\n\t\tconst finalCodec = availableCodecs.has(videoCodec)\n\t\t\t? videoCodec\n\t\t\t: [...availableCodecs].pop();\n\t\tlet isAVideoSelected = false;\n\n\t\tformats.forEach((format) => {\n\t\t\tlet sizeInMB = null;\n\t\t\tlet isApprox = false;\n\n\t\t\tif (format.filesize) {\n\t\t\t\tsizeInMB = format.filesize / 1000000;\n\t\t\t} else if (format.filesize_approx) {\n\t\t\t\tsizeInMB = format.filesize_approx / 1000000;\n\t\t\t\tisApprox = true;\n\t\t\t} else if (this.state.videoInfo.duration && format.tbr) {\n\t\t\t\tsizeInMB = (this.state.videoInfo.duration * format.tbr) / 8192;\n\t\t\t\tisApprox = true;\n\t\t\t}\n\n\t\t\tconst displaySize = sizeInMB\n\t\t\t\t? `${isApprox ? \"~\" : \"\"}${sizeInMB.toFixed(2)} MB`\n\t\t\t\t: i18n.__(\"unknownSize\");\n\n\t\t\tif (format.video_ext !== \"none\" && format.vcodec !== \"none\") {\n\t\t\t\tif (\n\t\t\t\t\t!showMoreFormats &&\n\t\t\t\t\t(format.ext === \"webm\" || format.vcodec?.startsWith(\"vp\"))\n\t\t\t\t) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tlet isSelected = false;\n\t\t\t\tif (\n\t\t\t\t\t!isAVideoSelected &&\n\t\t\t\t\tformat.height === bestMatchHeight &&\n\t\t\t\t\tformat.vcodec?.startsWith(finalCodec)\n\t\t\t\t) {\n\t\t\t\t\tisSelected = true;\n\t\t\t\t\tisAVideoSelected = true;\n\t\t\t\t}\n\n\t\t\t\tconst quality = `${format.height || \"???\"}p${\n\t\t\t\t\tformat.fps === 60 ? \"60\" : \"\"\n\t\t\t\t}`;\n\t\t\t\tconst hasAudio = format.acodec !== \"none\" ? \" 🔊\" : \"\";\n\n\t\t\t\tconst col1 = quality.padEnd(videoQualityPadding + 1, NBSP);\n\t\t\t\tconst col2 = format.ext.padEnd(extPadding, NBSP);\n\t\t\t\tconst col4 = displaySize.padEnd(filesizePadding, NBSP);\n\n\t\t\t\tlet optionText;\n\t\t\t\tif (showMoreFormats) {\n\t\t\t\t\tconst vcodec = format.vcodec?.split(\".\")[0] || \"\";\n\t\t\t\t\tconst col3 = vcodec.padEnd(vcodecPadding, NBSP);\n\t\t\t\t\toptionText = `${col1} | ${col2} | ${col3} | ${col4}${hasAudio}`;\n\t\t\t\t} else {\n\t\t\t\t\toptionText = `${col1} | ${col2} | ${col4}${hasAudio}`;\n\t\t\t\t}\n\n\t\t\t\tconst option = `<option value=\"${format.format_id}|${\n\t\t\t\t\tformat.ext\n\t\t\t\t}|${format.height}|${format.vcodec}\" ${\n\t\t\t\t\tisSelected ? \"selected\" : \"\"\n\t\t\t\t}>${optionText}</option>`;\n\n\t\t\t\tvideoSelect.innerHTML += option;\n\t\t\t} else if (\n\t\t\t\tformat.acodec !== \"none\" &&\n\t\t\t\tformat.video_ext === \"none\"\n\t\t\t) {\n\t\t\t\tif (!showMoreFormats && format.ext === \"webm\") return;\n\n\t\t\t\tconst audioExt = format.ext === \"webm\" ? \"opus\" : format.ext;\n\t\t\t\tconst formatNote =\n\t\t\t\t\ti18n.__(format.format_note) || i18n.__(\"unknownQuality\");\n\n\t\t\t\tconst audioExtPadded = audioExt.padEnd(extPadding, NBSP);\n\n\t\t\t\tconst audioQualityPadded = formatNote.padEnd(\n\t\t\t\t\taudioQualityPadding,\n\t\t\t\t\tNBSP\n\t\t\t\t);\n\t\t\t\tconst audioSizePadded = displaySize.padEnd(\n\t\t\t\t\tfilesizePadding,\n\t\t\t\t\tNBSP\n\t\t\t\t);\n\n\t\t\t\tconst option_audio = `<option value=\"${format.format_id}|${audioExt}\">${audioQualityPadded} | ${audioExtPadded} | ${audioSizePadded}</option>`;\n\n\t\t\t\taudioSelect.innerHTML += option_audio;\n\t\t\t\taudioForVideoSelect.innerHTML += option_audio;\n\t\t\t}\n\t\t});\n\n\t\tif (\n\t\t\tformats.every((f) => f.acodec === \"none\" || f.acodec === undefined)\n\t\t) {\n\t\t\t$(CONSTANTS.DOM_IDS.AUDIO_PRESENT_SECTION).style.display = \"none\";\n\t\t} else {\n\t\t\t$(CONSTANTS.DOM_IDS.AUDIO_PRESENT_SECTION).style.display = \"block\";\n\t\t}\n\t}\n\n\t/**\n\t * Shows the hidden panel with video information.\n\t */\n\t_displayInfoPanel() {\n\t\tconst info = this.state.videoInfo;\n\t\tconst titleContainer = $(CONSTANTS.DOM_IDS.TITLE_CONTAINER);\n\n\t\ttitleContainer.innerHTML = \"\"; // Clear previous content\n\t\ttitleContainer.append(\n\t\t\tObject.assign(document.createElement(\"b\"), {\n\t\t\t\ttextContent: i18n.__(\"title\") + \": \",\n\t\t\t}),\n\t\t\tObject.assign(document.createElement(\"input\"), {\n\t\t\t\tclassName: \"title\",\n\t\t\t\tid: CONSTANTS.DOM_IDS.TITLE_INPUT,\n\t\t\t\ttype: \"text\",\n\t\t\t\tvalue: `${info.title} [${info.id}]`,\n\t\t\t\tonchange: (e) => (this.state.videoInfo.title = e.target.value),\n\t\t\t})\n\t\t);\n\n\t\tdocument\n\t\t\t.querySelectorAll(CONSTANTS.DOM_IDS.URL_INPUTS)\n\t\t\t.forEach((el) => {\n\t\t\t\tel.value = info.url;\n\t\t\t});\n\n\t\tconst hiddenPanel = $(CONSTANTS.DOM_IDS.HIDDEN_PANEL);\n\t\thiddenPanel.style.display = \"inline-block\";\n\t\thiddenPanel.classList.add(\"scaleUp\");\n\t}\n\n\t/**\n\t * Creates the initial UI element for a new download.\n\t */\n\t_createDownloadUI(randomId, job) {\n\t\tconst itemHTML = `\n            <div class=\"item\" id=\"${randomId}\">\n                <div class=\"itemIconBox\">\n                    <img src=\"${\n\t\t\t\t\t\tjob.thumbnail || \"../assets/images/thumb.png\"\n\t\t\t\t\t}\" alt=\"thumbnail\" class=\"itemIcon\" crossorigin=\"anonymous\">\n                    <span class=\"itemType\">${i18n.__(\n\t\t\t\t\t\tjob.type === \"video\" ? \"video\" : \"audio\"\n\t\t\t\t\t)}</span>\n                </div>\n                <img src=\"../assets/images/close.png\" class=\"itemClose\" id=\"${randomId}_close\">\n                <div class=\"itemBody\">\n                    <div class=\"itemTitle\">${job.title}</div>\n                    <strong class=\"itemSpeed\" id=\"${randomId}_speed\"></strong>\n                    <div id=\"${randomId}_prog\" class=\"itemProgress\">${i18n.__(\n\t\t\t\"preparing\"\n\t\t)}</div>\n                </div>\n            </div>`;\n\t\t$(CONSTANTS.DOM_IDS.DOWNLOAD_LIST).insertAdjacentHTML(\n\t\t\t\"beforeend\",\n\t\t\titemHTML\n\t\t);\n\n\t\t$(`${randomId}_close`).addEventListener(\"click\", () =>\n\t\t\tthis._cancelDownload(randomId)\n\t\t);\n\t}\n\n\t/**\n\t * Updates the progress bar and speed for a download item.\n\t */\n\t_updateProgressUI(randomId, progress) {\n\t\tconst speedEl = $(`${randomId}_speed`);\n\t\tconst progEl = $(`${randomId}_prog`);\n\t\tif (!speedEl || !progEl) return;\n\n\t\tlet fillEl = progEl.querySelector(\".custom-progress-fill\");\n\n\t\tif (!fillEl) {\n\t\t\tprogEl.innerHTML = \"\";\n\n\t\t\tconst bar = document.createElement(\"div\");\n\t\t\tbar.className = \"custom-progress\";\n\n\t\t\tfillEl = document.createElement(\"div\");\n\t\t\tfillEl.className = \"custom-progress-fill\";\n\n\t\t\tbar.appendChild(fillEl);\n\t\t\tprogEl.appendChild(bar);\n\t\t}\n\n\t\tif (progress.percent === 100) {\n\t\t\tfillEl.style.width = progress.percent + \"%\";\n\t\t\tspeedEl.textContent = \"\";\n\t\t\tprogEl.textContent = i18n.__(\"processing\");\n\t\t\tipcRenderer.send(\"progress\", 0);\n\n\t\t\treturn;\n\t\t}\n\n\t\tspeedEl.textContent = `${i18n.__(\"speed\")}: ${\n\t\t\tprogress.currentSpeed || \"0 B/s\"\n\t\t}`;\n\t\tfillEl.style.width = progress.percent + \"%\";\n\n\t\tipcRenderer.send(\"progress\", progress.percent / 100);\n\t}\n\n\t/**\n\t * Updates a download item's UI to show it has completed successfully.\n\t */\n\t_showDownloadSuccessUI(randomId, filename, ext, thumbnail) {\n\t\tconst progressEl = $(`${randomId}_prog`);\n\t\tif (!progressEl) return;\n\n\t\tconst fullFilename = `${filename}.${ext}`;\n\t\tconst fullPath = join(this.state.downloadDir, fullFilename);\n\n\t\tprogressEl.innerHTML = \"\"; // Clear progress bar\n\t\tconst link = document.createElement(\"b\");\n\t\tlink.textContent = i18n.__(\"fileSavedClickToOpen\");\n\t\tlink.style.cursor = \"pointer\";\n\t\tlink.onclick = () => {\n\t\t\tipcRenderer.send(\"show-file\", fullPath);\n\t\t};\n\t\tprogressEl.appendChild(link);\n\t\t$(`${randomId}_speed`).textContent = \"\";\n\n\t\t// Send desktop notification\n\t\tnew Notification(\"ytDownloader\", {\n\t\t\tbody: fullFilename,\n\t\t\ticon: thumbnail,\n\t\t}).onclick = () => {\n\t\t\tshell.showItemInFolder(fullPath);\n\t\t};\n\n\t\t// Add to download history\n\t\tpromises\n\t\t\t.stat(fullPath)\n\t\t\t.then((stat) => {\n\t\t\t\tconst fileSize = stat.size || 0;\n\t\t\t\tipcRenderer\n\t\t\t\t\t.invoke(\"add-to-history\", {\n\t\t\t\t\t\ttitle: this.state.videoInfo.title,\n\t\t\t\t\t\turl: this.state.videoInfo.url,\n\t\t\t\t\t\tfilename: filename,\n\t\t\t\t\t\tfilePath: fullPath,\n\t\t\t\t\t\tfileSize: fileSize,\n\t\t\t\t\t\tformat: ext,\n\t\t\t\t\t\tthumbnail: thumbnail,\n\t\t\t\t\t\tduration: this.state.videoInfo.duration,\n\t\t\t\t\t})\n\t\t\t\t\t.catch((err) =>\n\t\t\t\t\t\tconsole.error(\"Error adding to history:\", err)\n\t\t\t\t\t);\n\t\t\t})\n\t\t\t.catch((error) => console.error(\"Error saving to history:\", error));\n\t}\n\n\t/**\n\t * Shows an error message in the main UI.\n\t */\n\t_showError(errorMessage, url) {\n\t\t$(CONSTANTS.DOM_IDS.INCORRECT_MSG).textContent =\n\t\t\ti18n.__(\"errorNetworkOrUrl\");\n\t\t$(CONSTANTS.DOM_IDS.ERROR_BTN).style.display = \"inline-block\";\n\t\tconst errorDetails = $(CONSTANTS.DOM_IDS.ERROR_DETAILS);\n\t\terrorDetails.innerHTML = `<strong>URL: ${url}</strong><br><br>${errorMessage}`;\n\t\terrorDetails.title = i18n.__(\"clickToCopy\");\n\t}\n\n\t/**\n\t * Hides the info panel with an animation.\n\t */\n\t_hideInfoPanel() {\n\t\tconst panel = $(CONSTANTS.DOM_IDS.HIDDEN_PANEL);\n\t\tif (panel.style.display !== \"none\") {\n\t\t\tpanel.classList.remove(\"scaleUp\");\n\t\t\tpanel.classList.add(\"scale\");\n\t\t\tsetTimeout(() => {\n\t\t\t\tpanel.style.display = \"none\";\n\t\t\t\tpanel.classList.remove(\"scale\");\n\t\t\t}, 400);\n\t\t}\n\t}\n\n\t/**\n\t * Displays a temporary popup message.\n\t */\n\t_showPopup(text, isError = false) {\n\t\tlet popupContainer = document.getElementById(\"popupContainer\");\n\n\t\tif (!popupContainer) {\n\t\t\tpopupContainer = document.createElement(\"div\");\n\t\t\tpopupContainer.id = \"popupContainer\";\n\t\t\tpopupContainer.className = \"popup-container\";\n\t\t\tdocument.body.appendChild(popupContainer);\n\t\t}\n\n\t\tconst popup = document.createElement(\"span\");\n\t\tpopup.textContent = text;\n\t\tpopup.classList.add(\"popup-item\");\n\n\t\tpopup.style.background = isError ? \"#ff6b6b\" : \"#54abde\";\n\n\t\tif (isError) {\n\t\t\tpopup.classList.add(\"popup-error\");\n\t\t}\n\n\t\tpopupContainer.appendChild(popup);\n\n\t\tsetTimeout(() => {\n\t\t\tpopup.style.opacity = \"0\";\n\t\t\tsetTimeout(() => {\n\t\t\t\tpopup.remove();\n\t\t\t\tif (popupContainer.childElementCount === 0) {\n\t\t\t\t\tpopupContainer.remove();\n\t\t\t\t}\n\t\t\t}, 1000);\n\t\t}, 2200);\n\t}\n\n\t/**\n\t * Hides the main menu.\n\t */\n\t_closeMenu() {\n\t\t$(CONSTANTS.DOM_IDS.MENU_ICON).style.transform = \"rotate(0deg)\";\n\t\t$(CONSTANTS.DOM_IDS.MENU).style.opacity = \"0\";\n\t\tsetTimeout(\n\t\t\t() => ($(CONSTANTS.DOM_IDS.MENU).style.display = \"none\"),\n\t\t\t500\n\t\t);\n\t}\n\n\t/**\n\t * Cancels a download in progress or removes it from the queue.\n\t * @param {string} id The ID of the download item.\n\t */\n\t_cancelDownload(id) {\n\t\t// If it's an active download\n\t\tif (this.state.downloadControllers.has(id)) {\n\t\t\tthis.state.downloadControllers.get(id).abort();\n\t\t}\n\t\t// If it's in the queue\n\t\tthis.state.downloadQueue = this.state.downloadQueue.filter(\n\t\t\t(job) => job.queueId !== id\n\t\t);\n\n\t\t// If it has been downloaded, remove from the set\n\t\tthis.state.downloadedItems.delete(id);\n\n\t\tthis._fadeAndRemoveItem(id);\n\t\tthis._updateClearAllButton();\n\t}\n\n\t/**\n\t * Fades and removes a DOM element.\n\t */\n\t_fadeAndRemoveItem(id) {\n\t\tconst item = $(id);\n\t\tif (item) {\n\t\t\titem.classList.add(\"scale\");\n\t\t\tsetTimeout(() => item.remove(), 500);\n\t\t}\n\t}\n\n\t/**\n\t * Removes all completed download items from the UI.\n\t */\n\t_clearAllDownloaded() {\n\t\tthis.state.downloadedItems.forEach((id) => this._fadeAndRemoveItem(id));\n\t\tthis.state.downloadedItems.clear();\n\t\tthis._updateClearAllButton();\n\t}\n\n\t/**\n\t * Shows or hides the \"Clear All\" button based on the number of completed items.\n\t */\n\t_updateClearAllButton() {\n\t\tconst btn = $(CONSTANTS.DOM_IDS.CLEAR_BTN);\n\t\tbtn.style.display =\n\t\t\tthis.state.downloadedItems.size > 1 ? \"inline-block\" : \"none\";\n\t}\n\n\t/**\n\t * Toggles between audio and video tabs\n\t */\n\t_defaultVideoToggle() {\n\t\tlet defaultWindow = \"video\";\n\t\tif (localStorage.getItem(\"defaultWindow\")) {\n\t\t\tdefaultWindow = localStorage.getItem(\"defaultWindow\");\n\t\t}\n\t\tif (defaultWindow == \"video\") {\n\t\t\tselectVideo();\n\t\t} else {\n\t\t\tselectAudio();\n\t\t}\n\t}\n\n\t/**\n\t * @param {string} timeString\n\t */\n\tparseTime(timeString) {\n\t\tconst parts = timeString.split(\":\").map((p) => parseInt(p.trim(), 10));\n\n\t\tlet totalSeconds = 0;\n\n\t\tif (parts.length === 3) {\n\t\t\t// H:MM:SS format\n\t\t\tconst [hrs, mins, secs] = parts;\n\t\t\tif (\n\t\t\t\tisNaN(hrs) ||\n\t\t\t\tisNaN(mins) ||\n\t\t\t\tisNaN(secs) ||\n\t\t\t\tmins < 0 ||\n\t\t\t\tmins > 59 ||\n\t\t\t\tsecs < 0 ||\n\t\t\t\tsecs > 59\n\t\t\t)\n\t\t\t\treturn NaN;\n\t\t\ttotalSeconds = hrs * 3600 + mins * 60 + secs;\n\t\t} else if (parts.length === 2) {\n\t\t\t// MM:SS format\n\t\t\tconst [mins, secs] = parts;\n\t\t\tif (isNaN(mins) || isNaN(secs) || secs < 0 || secs > 59) return NaN;\n\t\t\ttotalSeconds = mins * 60 + secs;\n\t\t} else if (parts.length === 1) {\n\t\t\tconst [secs] = parts;\n\t\t\tif (isNaN(secs)) return NaN;\n\t\t\ttotalSeconds = secs;\n\t\t} else {\n\t\t\treturn NaN;\n\t\t}\n\n\t\treturn totalSeconds;\n\t}\n\n\t_formatTime(duration) {\n\t\tif (duration === null) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\tconst hrs = Math.floor(duration / 3600);\n\t\tconst mins = Math.floor((duration % 3600) / 60);\n\t\tconst secs = Math.floor(duration % 60);\n\n\t\tconst paddedMins = String(mins).padStart(2, \"0\");\n\t\tconst paddedSecs = String(secs).padStart(2, \"0\");\n\n\t\tif (hrs > 0) {\n\t\t\t// H:MM:SS format\n\t\t\treturn `${hrs}:${paddedMins}:${paddedSecs}`;\n\t\t} else {\n\t\t\t// MM:SS format\n\t\t\treturn `${paddedMins}:${paddedSecs}`;\n\t\t}\n\t}\n\n\t/**\n\t * @param {HTMLElement} movedSlider\n\t */\n\t_updateSliderUI(movedSlider) {\n\t\tconst minSlider = $(CONSTANTS.DOM_IDS.MIN_SLIDER);\n\t\tconst maxSlider = $(CONSTANTS.DOM_IDS.MAX_SLIDER);\n\t\tconst minTimeDisplay = $(CONSTANTS.DOM_IDS.START_TIME);\n\t\tconst maxTimeDisplay = $(CONSTANTS.DOM_IDS.END_TIME);\n\t\tconst rangeHighlight = $(CONSTANTS.DOM_IDS.SLIDER_RANGE_HIGHLIGHT);\n\n\t\tlet minValue = parseInt(minSlider.value);\n\t\tlet maxValue = parseInt(maxSlider.value);\n\t\tconst minSliderVal = parseInt(minSlider.min);\n\t\tconst maxSliderVal = parseInt(minSlider.max);\n\t\tconst sliderRange = maxSliderVal - minSliderVal;\n\n\t\t// Prevent sliders from crossing each other\n\t\tif (minValue >= maxValue) {\n\t\t\tif (movedSlider && movedSlider.id === \"min-slider\") {\n\t\t\t\t// Min must be at least 1 second less than Max\n\t\t\t\tminValue = Math.max(minSliderVal, maxValue - 1);\n\t\t\t\tminSlider.value = minValue;\n\t\t\t} else {\n\t\t\t\t// Max must be at least 1 second more than Min\n\t\t\t\tmaxValue = Math.min(maxSliderVal, minValue + 1);\n\t\t\t\tmaxSlider.value = maxValue;\n\t\t\t}\n\t\t}\n\n\t\tminTimeDisplay.value = this._formatTime(minValue);\n\t\tmaxTimeDisplay.value = this._formatTime(maxValue);\n\n\t\tconst minPercent = ((minValue - minSliderVal) / sliderRange) * 100;\n\t\tconst maxPercent = ((maxValue - minSliderVal) / sliderRange) * 100;\n\n\t\trangeHighlight.style.left = `${minPercent}%`;\n\t\trangeHighlight.style.width = `${maxPercent - minPercent}%`;\n\t}\n\n\t/**\n\t * @param {Event} e\n\t */\n\t_handleTimeInputChange = (e) => {\n\t\tconst input = e.target;\n\t\tlet newSeconds = this.parseTime(input.value);\n\t\tconst minSlider = $(\"min-slider\");\n\t\tconst maxSlider = $(\"max-slider\");\n\n\t\tif (isNaN(newSeconds)) {\n\t\t\tinput.value = this._formatTime(\n\t\t\t\tinput.id === \"min-time\" ? minSlider.value : maxSlider.value\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\tconst minSliderVal = parseInt(minSlider.min);\n\t\tconst maxSliderVal = parseInt(minSlider.max);\n\t\tnewSeconds = Math.max(minSliderVal, Math.min(maxSliderVal, newSeconds));\n\n\t\tif (input.id === \"min-time\") {\n\t\t\tif (newSeconds >= parseInt(maxSlider.value)) {\n\t\t\t\tnewSeconds = Math.max(\n\t\t\t\t\tminSliderVal,\n\t\t\t\t\tparseInt(maxSlider.value) - 1\n\t\t\t\t);\n\t\t\t}\n\t\t\tminSlider.value = newSeconds;\n\t\t} else {\n\t\t\tif (newSeconds <= parseInt(minSlider.value)) {\n\t\t\t\tnewSeconds = Math.min(\n\t\t\t\t\tmaxSliderVal,\n\t\t\t\t\tparseInt(minSlider.value) + 1\n\t\t\t\t);\n\t\t\t}\n\t\t\tmaxSlider.value = newSeconds;\n\t\t}\n\n\t\tthis._updateSliderUI(null);\n\t};\n\n\t/**\n\t * Sets the maximum duration for the video and updates the slider's max range.\n\t * @param {number} duration - The total length of the video in seconds (must be an integer >= 1).\n\t */\n\tsetVideoLength(duration) {\n\t\tconst minSlider = $(CONSTANTS.DOM_IDS.MIN_SLIDER);\n\t\tconst maxSlider = $(CONSTANTS.DOM_IDS.MAX_SLIDER);\n\n\t\tif (typeof duration !== \"number\" || duration < 1) {\n\t\t\tconsole.error(\n\t\t\t\t\"Invalid duration provided to setVideoLength. Must be a number greater than 0.\"\n\t\t\t);\n\n\t\t\tminSlider.max = 0;\n\t\t\tmaxSlider.max = 0;\n\n\t\t\tminSlider.value = 0;\n\t\t\tmaxSlider.value = 0;\n\n\t\t\treturn;\n\t\t}\n\n\t\tminSlider.max = duration;\n\t\tmaxSlider.max = duration;\n\n\t\tconst defaultMin = 0;\n\t\tconst defaultMax = duration;\n\n\t\tminSlider.value = defaultMin;\n\t\tmaxSlider.value = defaultMax;\n\n\t\tthis._updateSliderUI(null);\n\t}\n}\n\n// --- Application Entry Point ---\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n\tconst app = new YtDownloaderApp();\n\tapp.initialize();\n});\n"
  },
  {
    "path": "src/types.d.ts",
    "content": "type format = {\n    vcodec?: string,\n    acodec?: string,\n    ext: string,\n    filesize?: number,\n    format_id: string,\n    format_note: string,\n    height: number,\n    resolution: string,\n    video_ext: string,\n    audio_ext: string,\n    filesize_approx?: number,\n    tbr: number,\n    fps: number,\n}\n\ntype info = {\n    title: string,\n    id: string,\n    thumbnail: string,\n    duration: number,\n    formats: format[],\n    extractor_key: string,\n}\n\nexport {\n    format,\n    info\n}"
  },
  {
    "path": "translations/ar-SA.json",
    "content": "{\n\t\"preferences\": \"الإعدادات\",\n\t\"about\": \"عن التطبيق\",\n\t\"downloadLocation\": \"مسار التنزيل\",\n\t\"currentDownloadLocation\": \"مسار التنزيل الحالي \",\n\t\"enableTransparentDarkMode\": \"تشغيل الوضع الداكن الشفاف (لينكس فقط، يحتاج إعادة تشغيل للبرنامج)\",\n\t\"downloadingNecessaryFilesWait\": \"بالرجاء الانتظار، يتم تنزيل الملفات الضرورية\",\n\t\"video\": \"فيديو\",\n\t\"audio\": \"صوت\",\n\t\"title\": \"العنوان \",\n\t\"selectFormat\": \"اختر الصيغة \",\n\t\"download\": \"تحميل\",\n\t\"selectDownloadLocation\": \"اختر مسار التنزيل\",\n\t\"moreOptions\": \"المزيد من الخيارات\",\n\t\"start\": \"ابدأ\",\n\t\"selectLanguageRelaunch\": \"اختر اللغة (يحتاج إعادة تشغيل للبرنامج)\",\n\t\"downloadTimeRange\": \"تنزيل نطاق زمني محدد\",\n\t\"end\": \"إنهاء\",\n\t\"timeRangeStartEmptyHint\": \"إذا تُركت فارغة، ستبدأ من البداية\",\n\t\"timeRangeEndEmptyHint\": \"إذا تُركت فارغة، سيتم التنزيل حتى النهاية\",\n\t\"homepage\": \"الصَّفحة الرئيسة\",\n\t\"aboutAppDescription\": \"إنه تطبيق مجاني ومفتوح المصدر مبني على Node.js و Electron. تم استخدام yt-dlp للتنزيل\",\n\t\"sourceCodeAvailable\": \"كود المصدر متاح \",\n\t\"here\": \"هنا\",\n\t\"processing\": \"جارٍ المعالجة\",\n\t\"errorNetworkOrUrl\": \"حدثت بعض الأخطاء. تفحص الإنترنت الخاص بك واستخدم الرابط الصحيح\",\n\t\"errorFailedFileDownload\": \"فشل تنزيل الملفات الضرورية. بالرجاء تفحص الإنترنت الخاص بك والمحاولة مرة أُخرى\",\n\t\"tryAgain\": \"حاول مجددًا\",\n\t\"unknownSize\": \"حجم غير معلوم\",\n\t\"megabyte\": \"ميجابايت\",\n\t\"unknownQuality\": \"جودة غير معروفة\",\n\t\"downloading\": \"جاري التحميل...\",\n\t\"errorHoverForDetails\": \"حدثت بعض المشاكل. ضع المؤشر هُنا لترى التفاصيل\",\n\t\"fileSavedSuccessfully\": \"تم حفظ المِلَف بنجاح\",\n\t\"fileSavedClickToOpen\": \"تم حفظ المِلَف. انقر للفتح\",\n\t\"preparing\": \"قيد التحضير...\",\n\t\"progress\": \"مستوى التقدُّم\",\n\t\"speed\": \"السرعة\",\n\t\"quality\": \"الجودة\",\n\t\"restartApp\": \"أعد تشغيل التطبيق\",\n\t\"subtitles\": \"الترجمة\",\n\t\"downloadSubtitlesAvailable\": \"حمّل الترجَمة إذا وجدت\",\n\t\"downloadSubtitlesAuto\": \"حمّل التّرجَمة التي تم إنشاؤها تِلقائيا\",\n\t\"extractAudioFromVideo\": \"استخرج الصوت من الفيديو\",\n\t\"extract\": \"استخرج\",\n\t\"downloadingNecessaryFiles\": \"جاري تحميل الملفات الضرورية\",\n\t\"qualityLow\": \"منخفضة\",\n\t\"qualityMedium\": \"متوسطة\",\n\t\"appDescription\": \"يتيح لك YtDownloader تنزيل مقاطع الفيديو والصوت من مئات المواقع مثل يوتيوب، وفيسبوك، وإنستاغرام، وتيكتوك، وتويتر وما إلى ذلك\",\n\t\"pasteText\": \"انقر للصق رابط الفيديو من الحافظة\",\n\t\"pastePlaylistLinkTooltip\": \"انقر للصق رابط قائمة التشغيل من الحافظة\",\n\t\"link\": \"الرابط:\",\n\t\"downloadingPlaylist\": \"جاري تنزيل قائمة التشغيل:\",\n\t\"downloadPlaylistButton\": \"حمِل قائمة تشغيل\",\n\t\"playlistDownloaded\": \"تم تنزيل قائمة التشغيل\",\n\t\"cookiesWarning\": \"يتيح هذا الخِيار تنزيل المحتوى المقيد. ستجد أخطاء إذا لم توجد ملفات تعريف الارتباط\",\n\t\"selectBrowserForCookies\": \"اختر المتصفح لاستخدام ملفات تعريف الارتباط منه\",\n\t\"none\": \"لا شَيْء\",\n\t\"updateAvailableDownloadPrompt\": \"يتوفر إصدار جديد من البرنامج ، هل تريد تنزيله؟\",\n\t\"updateAvailablePrompt\": \"يتوفر إصدار جديد من البرنامج ، هل تريد تنزيله؟\",\n\t\"update\": \"حدّث\",\n\t\"no\": \"لا\",\n\t\"installAndRestartPrompt\": \"هل تريد التثبيت وإعادة التشغيل الآن؟\",\n\t\"restart\": \"إعادة تشغيل البرنامَج\",\n\t\"later\": \"في وقت لاحق\",\n\t\"extractAudio\": \"استخرج الصوت\",\n\t\"selectVideoFormat\": \"اختر صيغة الفيديو \",\n\t\"selectAudioFormat\": \"اختر صيغة الصوت \",\n\t\"maxActiveDownloads\": \"أقصى عدد للتنزيلات الجارية\",\n\t\"preferredVideoQuality\": \"جودة الفيديو المفضلة\",\n\t\"preferredAudioFormat\": \"صيغة الصوت المفضلة\",\n\t\"best\": \"الأفضل\",\n\t\"fileSaved\": \"تم حفظ الملف\",\n\t\"openDownloadFolder\": \"فتح مجلد التنزيل\",\n\t\"path\": \"المسار:\",\n\t\"selectConfigFile\": \"اختر مِلَف الإعداد\",\n\t\"useConfigFile\": \"استخدام مِلَف الإعداد\",\n\t\"playlistFilenameFormat\": \"صيغة تسميه الملفات لقوائم التشغيل\",\n\t\"playlistFolderNameFormat\": \"صيغة تسميه المجلدات لقوائم التشغيل\",\n\t\"resetToDefault\": \"إعادة الإعدادات الافتراضية\",\n\t\"playlistRange\": \"نطاق قائمة التشغيل\",\n\t\"thumbnail\": \"الصورة المصغرة\",\n\t\"linkAdded\": \"تم إضافة الرابط\",\n\t\"downloadThumbnails\": \"تنزيل الصور المصغرة\",\n\t\"saveVideoLinksToFile\": \"حفظ روابط الفيديو إلى مِلَف\",\n\t\"closeAppToTray\": \"إغلاق التطبيق إلى غطاء النظام\",\n\t\"useConfigFileCheckbox\": \"استخدم مِلَف الإعداد\",\n\t\"openApp\": \"فتح تطبيق\",\n\t\"pasteVideoLink\": \"لصق رابط الفيديو\",\n\t\"quit\": \"خروج\",\n\t\"errorDetails\": \"تفاصيل الخطأ\",\n\t\"clickToCopy\": \"انقر للنسخ\",\n\t\"copiedText\": \"نص منسوخ\",\n\t\"qualityNormal\": \"عادي\",\n\t\"qualityGood\": \"جيد\",\n\t\"qualityBad\": \"سىء\",\n\t\"qualityWorst\": \"أسوأ\",\n\t\"selectQuality\": \"حدد الجودة\",\n\t\"disableAutoUpdates\": \"تعطيل التحديثات التلقائية\",\n\t\"qualityUltraLow\": \"منخفضه جداً\",\n\t\"closeAppOnFinish\": \"إغلاق التطبيق عند انتهاء التنزيل\",\n\t\"auto\": \"تلقائي\",\n\t\"theme\": \"السمة\",\n\t\"themeLight\": \"فاتح\",\n\t\"themeDark\": \"داكن\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"مصفوفة\",\n\t\"themeSolarizedDark\": \"داكن مُشمس\",\n\t\"preferredVideoCodec\": \"ترميز الفيديو المفضل\",\n\t\"showMoreFormatOptions\": \"إظهار المزيد من خيارات التنسيق\",\n\t\"flatsealPermissionWarning\": \"تحتاج إلى إعطاء الإذن للتطبيق للوصول إلى المجلد الرئيس لاستخدام هذا. يمكنك ذلك باستخدام Flatseal عن طريق تمكين الإذن ذو النص 'filesystem=home'\",\n\t\"noAudio\": \"دون صوت\",\n\t\"proxy\": \"الوكيل\",\n\t\"clearDownloads\": \"مسح سجل التنزيلات\",\n\t\"compressor\": \"ضاغط\",\n\t\"dragAndDropFiles\": \"اسحب وأفلت الملف(الملفات)\",\n\t\"chooseFiles\": \"اختر ملف(ملفات)\",\n\t\"noFilesSelected\": \"لم يتم اختيار أي ملفات\",\n\t\"videoFormat\": \"صيغة الفيديو\",\n\t\"videoEncoder\": \"مُرمز الفيديو\",\n\t\"compressionSpeed\": \"سرعة الضغط\",\n\t\"videoQuality\": \"جودة الفيديو\",\n\t\"audioFormat\": \"صيغة الصوت\",\n\t\"outputSuffix\": \"لاحقة المخرجات\",\n\t\"outputInSameFolder\": \"إخراج في نفس المجلد\",\n\t\"selectCustomFolder\": \"اختر مجلدًا مخصصًا\",\n\t\"startCompression\": \"بدء الضغط\",\n\t\"cancel\": \"إلغاء\",\n\t\"errorClickForDetails\": \"خطأ! انقر للتفاصيل\",\n\t\"homebrewYtDlpWarning\": \"يجب عليك تنزيل yt-dlp من homebrew أولاً\",\n\t\"openHomebrew\": \"افتح Homebrew\",\n\t\"downloadHistory\": \"سجل التنزيلات\",\n\t\"close\": \"إغلاق\",\n\t\"searchByTitleOrUrl\": \"ابحث بالعنوان أو الرابط...\",\n\t\"allFormats\": \"جميع الصيغ\",\n\t\"exportAsJson\": \"تصدير كـ JSON\",\n\t\"exportAsCsv\": \"تصدير كـ CSV\",\n\t\"clearAllHistory\": \"مسح كل السجل\",\n\t\"noDownloadsYet\": \"لا توجد تنزيلات بعد\",\n\t\"downloadHistoryPlaceholder\": \"سيظهر سجل التنزيلات الخاص بك هنا\",\n\t\"format\": \"الصيغة\",\n\t\"size\": \"الحجم\",\n\t\"date\": \"التاريخ\",\n\t\"duration\": \"المدة\",\n\t\"copyUrl\": \"نسخ الرابط\",\n\t\"open\": \"فتح\",\n\t\"delete\": \"حذف\",\n\t\"totalDownloads\": \"إجمالي التنزيلات\",\n\t\"totalSize\": \"إجمالي الحجم\",\n\t\"mostCommonFormat\": \"الصيغة الأكثر شيوعًا\",\n\t\"urlCopiedToClipboard\": \"تم نسخ الرابط إلى الحافظة!\",\n\t\"confirmDeleteHistoryItem\": \"هل أنت متأكد من أنك تريد حذف هذا العنصر من السجل؟\",\n\t\"confirmClearAllHistory\": \"هل أنت متأكد من أنك تريد مسح كل سجل التنزيلات؟ لا يمكن التراجع عن هذا!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/bn-BD.json",
    "content": "{\n\t\"preferences\": \"পছন্দসমূহ\",\n\t\"about\": \"তথ্য\",\n\t\"downloadLocation\": \"ডাউনলোডগুলির স্থান\",\n\t\"currentDownloadLocation\": \"এই মুহূর্তে ডাউনলোড রত ফাইল এর অবস্থান \",\n\t\"enableTransparentDarkMode\": \"স্বচ্ছল ডার্ক মোড চালু করুন (শুধুমাত্র লিনাক্স এ কার্যকর, অ্যাপ বন্ধ করে চালু করতে হবে)\",\n\t\"downloadingNecessaryFilesWait\": \"অপেক্ষা করুন, দরকারি ফাইল সমূহ ডাউনলোড হচ্ছে\",\n\t\"video\": \"ভিডিও\",\n\t\"audio\": \"অডিও\",\n\t\"title\": \"নাম \",\n\t\"selectFormat\": \"ফরমেট বেছে নিন \",\n\t\"download\": \"ডাউনলোড\",\n\t\"selectDownloadLocation\": \"ফাইল ডাউনলোড এর স্থান বেছে নিন\",\n\t\"moreOptions\": \"আরও অপশন দেখান\",\n\t\"start\": \"শুরু\",\n\t\"selectLanguageRelaunch\": \"ভাষা বেছে নিন (বন্ধ করে চালু করতে হবে)\",\n\t\"downloadTimeRange\": \"নির্ধারিত সময় সীমা এর মাঝের টুকু ডাউনলোড করো\",\n\t\"end\": \"শেষ\",\n\t\"timeRangeStartEmptyHint\": \"খালি রাখলে প্রথম থেকে শুরু হবে\",\n\t\"timeRangeEndEmptyHint\": \"খালি রাখলে শেষ সীমা শেষ এ হবে|\",\n\t\"homepage\": \"হোমপেজ\",\n\t\"aboutAppDescription\": \"এটি একটি মুক্ত/উন্মুক্ত উৎস সফটওয়্যার যা Node.js এবং Electron বেবহার করে | yt-dlp ডাউনলোড এর জন্য ব্যবহৃত হয় |\",\n\t\"sourceCodeAvailable\": \"উৎস কোড টি প্রদান করা হয়েছে \",\n\t\"here\": \"এখানে\",\n\t\"processing\": \"প্রক্রিয়াকরণ চলমান\",\n\t\"errorNetworkOrUrl\": \"কোনো ত্রুটি দেখা দিয়েছে| আপনার নেটওয়ার্ক চেক করুন এবং সঠিক ইউআরএল ব্যবহার করুন\",\n\t\"errorFailedFileDownload\": \"দরকারি ফাইল সমূহ ডাউনলোড করা যায়নি| নেটওয়ার্ক চেক করে পুনরায় চেষ্টা করুন\",\n\t\"tryAgain\": \"আবার চেষ্টা করুন\",\n\t\"unknownSize\": \"ফাইল সাইজ জানা নেই\",\n\t\"megabyte\": \"এমবি\",\n\t\"unknownQuality\": \"ভিডিও কোয়ালিটি অজানা\",\n\t\"downloading\": \"ডাউনলোড হচ্ছে...\",\n\t\"errorHoverForDetails\": \"কোনো ত্রুটি দেখা দিয়েছে| এর উপরে মাউস রেখে আরও তথ্য দেখুন\",\n\t\"fileSavedSuccessfully\": \"ডাউনলোড প্রক্রিয়া সফল হয়েছে\",\n\t\"fileSavedClickToOpen\": \"ফাইল সেভ হয়েছে| খুলতে ক্লিক করুন\",\n\t\"preparing\": \"প্রস্তুত হচ্ছে...\",\n\t\"progress\": \"অবস্থান\",\n\t\"speed\": \"স্পিড\",\n\t\"quality\": \"কোয়ালিটি\",\n\t\"restartApp\": \"অ্যাপ পুনরায় চালু করুন\",\n\t\"subtitles\": \"সাবটাইটেল\",\n\t\"downloadSubtitlesAvailable\": \"সাবটাইটেল থাকলে ডাউনলোড করুন\",\n\t\"downloadSubtitlesAuto\": \"অটো জেনারেটেড সাবটাইটেল ডাউনলোড করুন\",\n\t\"extractAudioFromVideo\": \"ভিডিও থেকে অডিও আলাদা করুন\",\n\t\"extract\": \"আলাদা করুন\",\n\t\"downloadingNecessaryFiles\": \"দরকারি ফাইল সমূহ ডাউনলোড করুন\",\n\t\"qualityLow\": \"নিম্ন\",\n\t\"qualityMedium\": \"মদ্ধ\",\n\t\"appDescription\": \"ytDownloader এর মাধ্যমে আপনি নানান ওয়েবসাইট থেকে ভিডিও এবং অডিও ডাউনলোড করতে পারবেন| যেমন ইউটুবে, ফেইসবুক, ইনস্টাগ্রাম, টুইটার ইত্যাদি\",\n\t\"pasteText\": \"ক্লিপবোর্ড থেকে ভিডিও লিংক পেস্ট করতে ক্লিক করুন\",\n\t\"pastePlaylistLinkTooltip\": \"ক্লিপবোর্ড থেকে প্লেলিস্ট লিংক পেস্ট করতে ক্লিক করুন\",\n\t\"link\": \"লিংক:\",\n\t\"downloadingPlaylist\": \"প্লেলিস্ট ডাউনলোড হচ্ছে:\",\n\t\"downloadPlaylistButton\": \"প্লেলিস্ট ডাউনলোড করো\",\n\t\"playlistDownloaded\": \"প্লেলিস্ট ডাউনলোড শেষ\",\n\t\"cookiesWarning\": \"এর মাধ্যমে আপনি রেস্ট্রিক্টেড কনটেন্ট ডাউনলোড করতে পারবেন| \\\"কুকিজ\\\" না থাকলে সমস্যা দেখা দিবে\",\n\t\"selectBrowserForCookies\": \"কুকিজ সিলেক্ট করতে ব্রাউসার বেছে নিন\",\n\t\"none\": \"কোনটাই না\",\n\t\"updateAvailableDownloadPrompt\": \"নতুন ভার্সন পাওয়া গেছে, আপনি কি সেটা ডাউনলোড করতে চান?\",\n\t\"updateAvailablePrompt\": \"নতুন ভার্সন পাওয়া গেছে, আপনি কি আপডেট করতে চান?\",\n\t\"update\": \"আপডেট\",\n\t\"no\": \"না\",\n\t\"installAndRestartPrompt\": \"ইনস্টল করে রিস্টার্ট করবো এখনই?\",\n\t\"restart\": \"রিস্টার্ট\",\n\t\"later\": \"পরে\",\n\t\"extractAudio\": \"অডিও আলাদা করুন\",\n\t\"selectVideoFormat\": \"ভিডিও ফরমেট বেছে নিন \",\n\t\"selectAudioFormat\": \"অডিও ফরমেট বেছে নিন \",\n\t\"maxActiveDownloads\": \"সর্বোচ্চ কত গুলো ডাউনলোড একই মুহূর্তে চলতে পারবে\",\n\t\"preferredVideoQuality\": \"পছন্দের ভিডিও কোয়ালিটি\",\n\t\"preferredAudioFormat\": \"পছন্দের অডিও ফরমেট\",\n\t\"best\": \"সেরা\",\n\t\"fileSaved\": \"ফাইল সেভ হয়েছে\",\n\t\"openDownloadFolder\": \"ডাউনলোড ফোল্ডার খুলুন\",\n\t\"path\": \"পথ:\",\n\t\"selectConfigFile\": \"কনফিগ ফাইল বেছে নিন\",\n\t\"useConfigFile\": \"কনফিগ ফাইল ব্যবহার করুন\",\n\t\"playlistFilenameFormat\": \"ফাইল এর নাম এর ফরমেট\",\n\t\"playlistFolderNameFormat\": \"প্লেলিস্ট এর ফোল্ডার গুলির নাম এর ফরমেট\",\n\t\"resetToDefault\": \"পুনরায় ডিফল্টে চলে যান\",\n\t\"playlistRange\": \"প্লেলিস্ট এর রেঞ্জ\",\n\t\"thumbnail\": \"থাম্বনেইল\",\n\t\"linkAdded\": \"লিংক যুক্ত হয়েছে\",\n\t\"downloadThumbnails\": \"থাম্বনেইল ডাউনলোড করুন\",\n\t\"saveVideoLinksToFile\": \"ভিডিও লিংক গুলো একটি ফাইল এ সেভ করুন\",\n\t\"closeAppToTray\": \"অ্যাপ মিনি মাইজ করুন\",\n\t\"useConfigFileCheckbox\": \"কনফিগ ফাইল ব্যবহার করুন\",\n\t\"openApp\": \"অ্যাপ খুলুন\",\n\t\"pasteVideoLink\": \"ভিডিও লিংক পেস্ট করুন\",\n\t\"quit\": \"বন্ধ\",\n\t\"errorDetails\": \"সমস্যার বিবরণ\",\n\t\"clickToCopy\": \"কপি করতে ক্লিক করুন\",\n\t\"copiedText\": \"লেখা কপি হয়েছে\",\n\t\"qualityNormal\": \"সাধারণ\",\n\t\"qualityGood\": \"ভালো\",\n\t\"qualityBad\": \"খারাপ\",\n\t\"qualityWorst\": \"সবচেয়ে খারাপ\",\n\t\"selectQuality\": \"কোয়ালিটি বেছে নিন\",\n\t\"disableAutoUpdates\": \"নিজ থেকে আপডেট হওয়া বন্ধ করুন\",\n\t\"qualityUltraLow\": \"সর্বনিম্ন\",\n\t\"closeAppOnFinish\": \"ডাউনলোড শেষ হলে অ্যাপ নিজেথেকে বন্ধ হয়ে যাক\",\n\t\"auto\": \"অটো\",\n\t\"theme\": \"থিম\",\n\t\"themeLight\": \"লাইট\",\n\t\"themeDark\": \"ডার্ক\",\n\t\"themeFrappe\": \"ফ্রাপে\",\n\t\"themeOneDark\": \"ওয়ান ডার্ক\",\n\t\"themeMatrix\": \"মেট্রিক্স\",\n\t\"themeSolarizedDark\": \"সোলাররাইসড ডার্ক\",\n\t\"preferredVideoCodec\": \"পছন্দের ভিডিও কোডেক\",\n\t\"showMoreFormatOptions\": \"আরও ফরমেট অপসন দেখান\",\n\t\"flatsealPermissionWarning\": \"আপনাকে এই অ্যাপ তা কে যথাযথ অনুমতি দিতে হবে. এইটা করতে পারেন \\\"ফ্ল্যাটসিল\\\" নামক অ্যাপ এর মাদ্ধমে 'filesystem=home' হিসেবে চিহ্নিত পারমিশন তা কে চালু করে দিয়ে|\",\n\t\"noAudio\": \"অডিও বিহীন\",\n\t\"proxy\": \"প্রক্সী\",\n\t\"clearDownloads\": \"ডাউনলোড লিস্ট মুছে দিন\",\n\t\"compressor\": \"কম্প্রেসার\",\n\t\"dragAndDropFiles\": \"ফাইল(গুলি) টেনে এনে রাখুন\",\n\t\"chooseFiles\": \"ফাইল(গুলি) বেছে নিন\",\n\t\"noFilesSelected\": \"কোনো ফাইল বেছে নেওয়া হয়নি\",\n\t\"videoFormat\": \"ভিডিও ফরম্যাট\",\n\t\"videoEncoder\": \"ভিডিও এনকোডার\",\n\t\"compressionSpeed\": \"কম্প্রেশন স্পিড\",\n\t\"videoQuality\": \"ভিডিও কোয়ালিটি\",\n\t\"audioFormat\": \"অডিও ফরম্যাট\",\n\t\"outputSuffix\": \"আউটপুট সাফিক্স\",\n\t\"outputInSameFolder\": \"একই ফোল্ডারে আউটপুট\",\n\t\"selectCustomFolder\": \"কাস্টম ফোল্ডার বেছে নিন\",\n\t\"startCompression\": \"কম্প্রেশন শুরু করুন\",\n\t\"cancel\": \"বাতিল\",\n\t\"errorClickForDetails\": \"ত্রুটি! বিস্তারিত জানতে ক্লিক করুন\",\n\t\"homebrewYtDlpWarning\": \"আপনাকে প্রথমে হোমব্রু থেকে yt-dlp ডাউনলোড করতে হবে\",\n\t\"openHomebrew\": \"হোমব্রু খুলুন\",\n\t\"downloadHistory\": \"ডাউনলোড ইতিহাস\",\n\t\"close\": \"বন্ধ করুন\",\n\t\"searchByTitleOrUrl\": \"শিরোনাম বা ইউআরএল দিয়ে খুঁজুন...\",\n\t\"allFormats\": \"সব ফরম্যাট\",\n\t\"exportAsJson\": \"JSON হিসাবে রপ্তানি করুন\",\n\t\"exportAsCsv\": \"CSV হিসাবে রপ্তানি করুন\",\n\t\"clearAllHistory\": \"সমস্ত ইতিহাস মুছে ফেলুন\",\n\t\"noDownloadsYet\": \"এখনো কোনো ডাউনলোড নেই\",\n\t\"downloadHistoryPlaceholder\": \"আপনার ডাউনলোড ইতিহাস এখানে দেখা যাবে\",\n\t\"format\": \"ফরম্যাট\",\n\t\"size\": \"সাইজ\",\n\t\"date\": \"তারিখ\",\n\t\"duration\": \"সময়কাল\",\n\t\"copyUrl\": \"ইউআরএল কপি করুন\",\n\t\"open\": \"খুলুন\",\n\t\"delete\": \"মুছে ফেলুন\",\n\t\"totalDownloads\": \"মোট ডাউনলোড\",\n\t\"totalSize\": \"মোট সাইজ\",\n\t\"mostCommonFormat\": \"সবচেয়ে সাধারণ ফরম্যাট\",\n\t\"urlCopiedToClipboard\": \"ইউআরএল ক্লিপবোর্ডে কপি করা হয়েছে!\",\n\t\"confirmDeleteHistoryItem\": \"আপনি কি নিশ্চিত যে আপনি ইতিহাস থেকে এই আইটেমটি মুছে ফেলতে চান?\",\n\t\"confirmClearAllHistory\": \"আপনি কি নিশ্চিত যে আপনি সমস্ত ডাউনলোড ইতিহাস মুছে ফেলতে চান? এটি পূর্বাবস্থায় ফেরানো যাবে না!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/de-DE.json",
    "content": "{\n\t\"preferences\": \"Einstellungen\",\n\t\"about\": \"Über\",\n\t\"downloadLocation\": \"Download-Verzeichnis\",\n\t\"currentDownloadLocation\": \"Aktuelles Download-Verzeichnis - \",\n\t\"enableTransparentDarkMode\": \"Aktiviere transparenten Dunkelmodus (nur Linux, Neustart erforderlich)\",\n\t\"downloadingNecessaryFilesWait\": \"Bitte warten, notwendige Dateien werden heruntergeladen\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Titel \",\n\t\"selectFormat\": \"Wähle Format \",\n\t\"download\": \"Download\",\n\t\"selectDownloadLocation\": \"Wähle Download-Verzeichnis\",\n\t\"moreOptions\": \"Weitere Optionen\",\n\t\"start\": \"Start\",\n\t\"selectLanguageRelaunch\": \"Sprache wählen (Neustart erforderlich)\",\n\t\"downloadTimeRange\": \"Bestimmten Zeitraum herunterladen\",\n\t\"end\": \"Ende\",\n\t\"timeRangeStartEmptyHint\": \"Wenn leer gelassen, wird es am Anfang beginnen\",\n\t\"timeRangeEndEmptyHint\": \"Wenn leer gelassen, wird bis zum Ende heruntergeladen\",\n\t\"homepage\": \"Homepage\",\n\t\"aboutAppDescription\": \"Eine kostenlose Open-Source-App, die auf Node.js und Electron aufgebaut ist. yt-dlp wurde zum Herunterladen verwendet\",\n\t\"sourceCodeAvailable\": \"Quellcode verfügbar \",\n\t\"here\": \"hier\",\n\t\"processing\": \"Verarbeiten\",\n\t\"errorNetworkOrUrl\": \"Ein Fehler ist aufgetreten. Überprüfen Sie Ihr Netzwerk und verwenden Sie eine korrekte URL\",\n\t\"errorFailedFileDownload\": \"Fehler beim Herunterladen der benötigten Dateien. Bitte überprüfen Sie Ihr Netzwerk und versuchen Sie es erneut\",\n\t\"tryAgain\": \"Erneut versuchen\",\n\t\"unknownSize\": \"Unbekannte Größe\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Unbekannte Qualität\",\n\t\"downloading\": \"Herunterladen...\",\n\t\"errorHoverForDetails\": \"Ein Fehler ist aufgetreten. Hovern um Details zu sehen\",\n\t\"fileSavedSuccessfully\": \"Datei erfolgreich gespeichert\",\n\t\"fileSavedClickToOpen\": \"Datei gespeichert. Klicken zum Öffnen\",\n\t\"preparing\": \"Vorbereiten...\",\n\t\"progress\": \"Fortschritt\",\n\t\"speed\": \"Geschwindigkeit\",\n\t\"quality\": \"Qualität\",\n\t\"restartApp\": \"App neu starten\",\n\t\"subtitles\": \"Untertitel\",\n\t\"downloadSubtitlesAvailable\": \"Untertitel herunterladen, falls verfügbar\",\n\t\"downloadSubtitlesAuto\": \"Automatisch generierte Untertitel herunterladen\",\n\t\"extractAudioFromVideo\": \"Audio aus Video extrahieren\",\n\t\"extract\": \"Extrahieren\",\n\t\"downloadingNecessaryFiles\": \"Benötigte Dateien herunterladen\",\n\t\"qualityLow\": \"niedrig\",\n\t\"qualityMedium\": \"mittel\",\n\t\"appDescription\": \"ytDownloader ermöglicht es, Videos und Audios von hunderten Websites wie Youtube, Facebook, Instagram, Tiktok, Twitter und vielen mehr herunterzuladen\",\n\t\"pasteText\": \"Klicken, um Video-Link aus der Zwischenablage einzufügen\",\n\t\"pastePlaylistLinkTooltip\": \"Klicken, um Playlist-Link aus der Zwischenablage einzufügen\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"Wiedergabeliste wird heruntergeladen:\",\n\t\"downloadPlaylistButton\": \"Playlist herunterladen\",\n\t\"playlistDownloaded\": \"Wiedergabeliste heruntergeladen\",\n\t\"cookiesWarning\": \"Mit dieser Option können Sie eingeschränkte Inhalte herunterladen. Sie werden Fehler erhalten, wenn Cookies nicht vorhanden sind\",\n\t\"selectBrowserForCookies\": \"Browser zum Verwenden von Cookies auswählen\",\n\t\"none\": \"Keine\",\n\t\"updateAvailableDownloadPrompt\": \"Eine neue Version ist verfügbar, möchten Sie sie herunterladen?\",\n\t\"updateAvailablePrompt\": \"Eine neue Version ist verfügbar, möchten Sie aktualisieren?\",\n\t\"update\": \"Aktualisierung\",\n\t\"no\": \"Nein\",\n\t\"installAndRestartPrompt\": \"Jetzt installieren und neu starten?\",\n\t\"restart\": \"Neustart\",\n\t\"later\": \"Später\",\n\t\"extractAudio\": \"Audio extrahieren\",\n\t\"selectVideoFormat\": \"Videoformat auswählen \",\n\t\"selectAudioFormat\": \"Audioformat auswählen \",\n\t\"maxActiveDownloads\": \"Maximale Anzahl aktiver Downloads\",\n\t\"preferredVideoQuality\": \"Bevorzugte Videoqualität\",\n\t\"preferredAudioFormat\": \"Bevorzugtes Audioformat\",\n\t\"best\": \"Beste\",\n\t\"fileSaved\": \"Datei gespeichert\",\n\t\"openDownloadFolder\": \"Downloadordner öffnen\",\n\t\"path\": \"Pfad:\",\n\t\"selectConfigFile\": \"Konfiguration auswählen\",\n\t\"useConfigFile\": \"Konfigurationsdatei verwenden\",\n\t\"playlistFilenameFormat\": \"Dateinamenformat für Wiedergabelisten\",\n\t\"playlistFolderNameFormat\": \"Ordnername für Wiedergabelisten\",\n\t\"resetToDefault\": \"Auf Standard zurücksetzen\",\n\t\"playlistRange\": \"Playlist-Bereich\",\n\t\"thumbnail\": \"Miniaturansicht\",\n\t\"linkAdded\": \"Verlinkung hinzugefügt\",\n\t\"downloadThumbnails\": \"Thumbnails herunterladen\",\n\t\"saveVideoLinksToFile\": \"Videolinks in einer Datei speichern\",\n\t\"closeAppToTray\": \"Schließen Sie die App in der Taskleiste\",\n\t\"useConfigFileCheckbox\": \"Konfigurationsdatei verwenden\",\n\t\"openApp\": \"App öffnen\",\n\t\"pasteVideoLink\": \"Video-Link einfügen\",\n\t\"quit\": \"Beenden\",\n\t\"errorDetails\": \"Fehler-Details\",\n\t\"clickToCopy\": \"Zum Kopieren klicken\",\n\t\"copiedText\": \"Text kopiert\",\n\t\"qualityNormal\": \"Normal\",\n\t\"qualityGood\": \"Gut\",\n\t\"qualityBad\": \"Schlecht\",\n\t\"qualityWorst\": \"Schlechteste\",\n\t\"selectQuality\": \"Qualität auswählen\",\n\t\"disableAutoUpdates\": \"Automatische Updates deaktivieren\",\n\t\"qualityUltraLow\": \"Sehr niedrig\",\n\t\"closeAppOnFinish\": \"App schließen, wenn der Download beendet ist\",\n\t\"auto\": \"Auto\",\n\t\"theme\": \"Thema\",\n\t\"themeLight\": \"Licht\",\n\t\"themeDark\": \"Dunkel\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"Ein Dunkler\",\n\t\"themeMatrix\": \"Matrizen\",\n\t\"themeSolarizedDark\": \"Solarized dunkel\",\n\t\"preferredVideoCodec\": \"Bevorzugter Video-Codec\",\n\t\"showMoreFormatOptions\": \"Weitere Formatoptionen anzeigen\",\n\t\"flatsealPermissionWarning\": \"Sie müssen der App die Berechtigung zum Zugriff auf das Home-Verzeichnis erteilen, um dies zu verwenden. Sie können dies mit Flatseal tun, indem Sie die Berechtigung mit dem Text 'filesystem = home' aktivieren\",\n\t\"noAudio\": \"Kein Audio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Downloads löschen\",\n\t\"compressor\": \"Kompressor\",\n\t\"dragAndDropFiles\": \"Datei(en) per Drag & Drop verschieben\",\n\t\"chooseFiles\": \"Datei(en) auswählen\",\n\t\"noFilesSelected\": \"Keine Dateien ausgewählt\",\n\t\"videoFormat\": \"Videoformat\",\n\t\"videoEncoder\": \"Video Encoder\",\n\t\"compressionSpeed\": \"Komprimierungsgeschwindigkeit\",\n\t\"videoQuality\": \"Videoqualität\",\n\t\"audioFormat\": \"Audioformat\",\n\t\"outputSuffix\": \"Ausgabe-Suffix\",\n\t\"outputInSameFolder\": \"Ausgabe im gleichen Ordner\",\n\t\"selectCustomFolder\": \"Benutzerdefinierten Ordner auswählen\",\n\t\"startCompression\": \"Komprimierung starten\",\n\t\"cancel\": \"Abbrechen\",\n\t\"errorClickForDetails\": \"Fehler! Für Details klicken\",\n\t\"homebrewYtDlpWarning\": \"Du musst zuerst yt-dlp von Homebrew herunterladen\",\n\t\"openHomebrew\": \"Homebrew öffnen\",\n\t\"downloadHistory\": \"Verlauf herunterladen\",\n\t\"close\": \"Schließen\",\n\t\"searchByTitleOrUrl\": \"Suche nach Titel oder URL...\",\n\t\"allFormats\": \"Alle Formate\",\n\t\"exportAsJson\": \"Als JSON exportieren\",\n\t\"exportAsCsv\": \"Als CSV exportieren\",\n\t\"clearAllHistory\": \"Lösche die ganze History\",\n\t\"noDownloadsYet\": \"Noch nicht heruntergeladen\",\n\t\"downloadHistoryPlaceholder\": \"Ihr Downloadverlauf wird hier erscheinen\",\n\t\"format\": \"Format\",\n\t\"size\": \"Größe\",\n\t\"date\": \"Datum\",\n\t\"duration\": \"Dauer\",\n\t\"copyUrl\": \"URL kopieren\",\n\t\"open\": \"Öffnen\",\n\t\"delete\": \"Löschen\",\n\t\"totalDownloads\": \"Downloads gesamt\",\n\t\"totalSize\": \"Gesamtgröße\",\n\t\"mostCommonFormat\": \"Häufigstes Format\",\n\t\"urlCopiedToClipboard\": \"URL in Zwischenablage kopiert\",\n\t\"confirmDeleteHistoryItem\": \"Sind Sie sicher, dass Sie dieses Element aus dem Verlauf löschen möchten?\",\n\t\"confirmClearAllHistory\": \"Sind Sie sicher, dass Sie den gesamten Downloadverlauf löschen möchten? Dies kann nicht rückgängig gemacht werden!\",\n\t\"fileDoesNotExist\": \"Datei existiert nicht mehr\",\n\t\"updatingYtdlp\": \"Aktualisiere yt-dlp\",\n\t\"updatedYtdlp\": \"Aktualisierte yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Wenn yt-dlp aktualisiert wird, warten Sie, bis die Aktualisierung abgeschlossen ist. Wenn Sie yt-dlp selbst installiert haben, aktualisieren Sie es bitte.\",\n\t\"failedToDeleteHistoryItem\": \"Fehler beim Löschen des Verlaufs\",\n\t\"customArgsTxt\": \"Setze eigene yt-dlp Optionen.\",\n\t\"learnMore\": \"Erfahre mehr\",\n\t\"updateError\": \"Beim Update-Prozess ist ein Fehler aufgetreten\",\n\t\"unableToAccessDir\": \"Das Programm kann nicht auf diesen Ordner zugreifen\",\n\t\"downloadingUpdate\": \"Update wird heruntergeladen\"\n}\n"
  },
  {
    "path": "translations/el-GR.json",
    "content": "{\n\t\"preferences\": \"Προτιμήσεις\",\n\t\"about\": \"Σχετικά με\",\n\t\"downloadLocation\": \"Τοποθεσία λήψεων\",\n\t\"currentDownloadLocation\": \"Τρέχουσα τοποθεσία λήψεων - \",\n\t\"enableTransparentDarkMode\": \"Ενεργοποίηση σκοτεινής λειτουργίας(μόνο για Linux, χρειάζεται επανεκκίνηση)\",\n\t\"downloadingNecessaryFilesWait\": \"Παρακαλώ περιμένετε, τα απαραίτητα αρχεία κατεβαίνουν\",\n\t\"video\": \"Βίντεο\",\n\t\"audio\": \"Ήχος\",\n\t\"title\": \"Τίτλος \",\n\t\"selectFormat\": \"Επιλέξτε μορφή \",\n\t\"download\": \"Λήψη\",\n\t\"selectDownloadLocation\": \"Επιλέξτε τοποθεσία λήψεων\",\n\t\"moreOptions\": \"Περισσότερες επιλογές\",\n\t\"start\": \"Έναρξη\",\n\t\"selectLanguageRelaunch\": \"Επιλέξτε Γλώσσα (Απαιτεί επανεκκίνηση)\",\n\t\"downloadTimeRange\": \"Κατεβάστε συγκεκριμένα χρονικά διαστήματα του βίντεο\",\n\t\"end\": \"Τέλος\",\n\t\"timeRangeStartEmptyHint\": \"Αν παραμείνει κενό, θα ξεκινήσει από την αρχή\",\n\t\"timeRangeEndEmptyHint\": \"Αν παραμείνει κενό, θα γίνει λήψη στο τέλος\",\n\t\"homepage\": \"Αρχική σελίδα\",\n\t\"aboutAppDescription\": \"Είναι μια εφαρμογή Δωρεάν και Ανοιχτού Κώδικα που βασίζεται στην κορυφή των Node.js και Electron. Το yt-dlp έχει χρησιμοποιηθεί για τη λήψη\",\n\t\"sourceCodeAvailable\": \"Ο κώδικας του προγράμματος είναι διαθέσιμος \",\n\t\"here\": \"εδώ\",\n\t\"processing\": \"Σε επεξεργασία\",\n\t\"errorNetworkOrUrl\": \"Παρουσιάστηκε σφάλμα. Ελέγξτε το δίκτυό σας και χρησιμοποιήστε σωστό URL\",\n\t\"errorFailedFileDownload\": \"Αποτυχία λήψης των απαραίτητων αρχείων. Παρακαλώ ελέγξτε το δίκτυό σας και προσπαθήστε ξανά\",\n\t\"tryAgain\": \"Προσπαθήστε ξανά\",\n\t\"unknownSize\": \"Άγνωστο μέγεθος\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Άγνωστη ποιότητα\",\n\t\"downloading\": \"Γίνεται Λήψη...\",\n\t\"errorHoverForDetails\": \"Παρουσιάστηκε κάποιο σφάλμα. Πατήστε για να δείτε τις λεπτομέρειες\",\n\t\"fileSavedSuccessfully\": \"Το αρχείο αποθηκεύτηκε επιτυχώς\",\n\t\"fileSavedClickToOpen\": \"Το αρχείο αποθηκεύτηκε. Κάντε κλικ για άνοιγμα\",\n\t\"preparing\": \"Προετοιμασία...\",\n\t\"progress\": \"Πρόοδος\",\n\t\"speed\": \"Ταχύτητα\",\n\t\"quality\": \"Ποιότητα\",\n\t\"restartApp\": \"Επανεκκίνηση της εφαρμογής\",\n\t\"subtitles\": \"Υπότιτλοι\",\n\t\"downloadSubtitlesAvailable\": \"Λήψη υποτίτλων εάν είναι διαθέσιμοι\",\n\t\"downloadSubtitlesAuto\": \"Λήψη αυτόματης δημιουργίας υπότιτλων\",\n\t\"extractAudioFromVideo\": \"Εξαγωγή ήχου από το βίντεο\",\n\t\"extract\": \"Εξαγωγή\",\n\t\"downloadingNecessaryFiles\": \"Λήψη απαραίτητων αρχείων\",\n\t\"qualityLow\": \"χαμηλή\",\n\t\"qualityMedium\": \"μέτρια\",\n\t\"appDescription\": \"Το ytDownloader σας επιτρέπει να κατεβάσετε βίντεο και ήχους από εκατοντάδες ιστοσελίδες όπως το Youtube, Facebook, Instagram, Tiktok, Twitter και πολλά άλλα\",\n\t\"pasteText\": \"Κάντε κλικ για επικόλληση συνδέσμου βίντεο από το πρόχειρο\",\n\t\"pastePlaylistLinkTooltip\": \"Κάντε κλικ για επικόλληση συνδέσμου λίστας αναπαραγωγής από το πρόχειρο\",\n\t\"link\": \"Σύνδεσμος:\",\n\t\"downloadingPlaylist\": \"Γίνεται λήψη λίστας αναπαραγωγής:\",\n\t\"downloadPlaylistButton\": \"Λήψη λίστας αναπαραγωγής\",\n\t\"playlistDownloaded\": \"Η λίστα αναπαραγωγής λήφθηκε\",\n\t\"cookiesWarning\": \"Αυτή η επιλογή σας επιτρέπει να κατεβάσετε περιορισμένο περιεχόμενο. Θα λάβετε σφάλματα εάν τα cookies δεν υπάρχουν\",\n\t\"selectBrowserForCookies\": \"Επιλέξτε πρόγραμμα περιήγησης για χρήση των cookies\",\n\t\"none\": \"Τίποτα\",\n\t\"updateAvailableDownloadPrompt\": \"Νέα έκδοση είναι διαθέσιμη, θέλετε να την κατεβάσετε;\",\n\t\"updateAvailablePrompt\": \"Νέα έκδοση είναι διαθέσιμη, θέλετε να την ενημερώσετε;\",\n\t\"update\": \"Ενημέρωση\",\n\t\"no\": \"Όχι\",\n\t\"installAndRestartPrompt\": \"Εγκατάσταση και επανεκκίνηση τώρα;\",\n\t\"restart\": \"Επανεκκίνηση\",\n\t\"later\": \"Αργότερα\",\n\t\"extractAudio\": \"Εξαγωγή ήχου\",\n\t\"selectVideoFormat\": \"Επιλογή Μορφής Βιντέου \",\n\t\"selectAudioFormat\": \"Επιλέξτε Μορφή Ήχου \",\n\t\"maxActiveDownloads\": \"Μέγιστος αριθμός ενεργών λήψεων\",\n\t\"preferredVideoQuality\": \"Προτεινόμενη ποιότητα βιντέου\",\n\t\"preferredAudioFormat\": \"Προτιμώμενη μορφή ήχου\",\n\t\"best\": \"Καλύτερο\",\n\t\"fileSaved\": \"Το αρχείο αποθηκεύτηκε.\",\n\t\"openDownloadFolder\": \"Ανοίξτε τον φάκελο λήψεων\",\n\t\"path\": \"Μονοπάτι:\",\n\t\"selectConfigFile\": \"Επιλέξτε αρχείο ρυθμίσεων\",\n\t\"useConfigFile\": \"Χρησιμοποιήστε το αρχείο ρυθμίσεων\",\n\t\"playlistFilenameFormat\": \"Μορφή ονόματος αρχείου για λίστες αναπαραγωγής\",\n\t\"playlistFolderNameFormat\": \"Μορφή ονόματος φακέλου για λίστες αναπαραγωγής\",\n\t\"resetToDefault\": \"Επαναφορά στις αρχικές ρυθμίσεις\",\n\t\"playlistRange\": \"Εύρος λίστας αναπαραγωγής\",\n\t\"thumbnail\": \"Εικονίδιο\",\n\t\"linkAdded\": \"Ο σύνδεσμος προστέθηκε\",\n\t\"downloadThumbnails\": \"Λήψη εικονιδίου\",\n\t\"saveVideoLinksToFile\": \"Αποθήκευση συνδέσμων βιντέου σε αρχείο\",\n\t\"closeAppToTray\": \"Κλείσιμο εφαρμογής στην περιοχή ειδοποιήσεων\",\n\t\"useConfigFileCheckbox\": \"Χρήση αρχείου ρυθμίσεων\",\n\t\"openApp\": \"Άνοιγμα εφαρμογής\",\n\t\"pasteVideoLink\": \"Επικόλληση σύνδεσμο βιντέου\",\n\t\"quit\": \"Έξοδος\",\n\t\"errorDetails\": \"Λεπτομέρειες σφάλματος\",\n\t\"clickToCopy\": \"Κάνε κλικ για αντιγραφή\",\n\t\"copiedText\": \"Αντιγραμμένο κείμενο\",\n\t\"qualityNormal\": \"Φυσιολογικό\",\n\t\"qualityGood\": \"Καλός\",\n\t\"qualityBad\": \"Κακή\",\n\t\"qualityWorst\": \"Χειρότερο\",\n\t\"selectQuality\": \"Επιλογή Ποιότητας\",\n\t\"disableAutoUpdates\": \"Απενεργοποίηση αυτόματων ενημερώσεων\",\n\t\"qualityUltraLow\": \"υπερβολικά χαμηλό\",\n\t\"closeAppOnFinish\": \"Κλείσιμο εφαρμογής όταν ολοκληρωθεί η λήψη\",\n\t\"auto\": \"Αυτόματο\",\n\t\"theme\": \"Θέμα\",\n\t\"themeLight\": \"Φως\",\n\t\"themeDark\": \"Σκοτεινό\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"Ένα Σκοτεινό\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"Προτιμώμενος κωδικοποιητής βίντεο\",\n\t\"showMoreFormatOptions\": \"Εμφάνιση περισσότερων επιλογών μορφής\",\n\t\"flatsealPermissionWarning\": \"Πρέπει να δώσετε στην εφαρμογή άδεια πρόσβασης στον αρχικό κατάλογο για να το χρησιμοποιήσετε. Μπορείτε να το κάνετε με το Flatseal ενεργοποιώντας την άδεια με το κείμενο 'filesystem=home'\",\n\t\"noAudio\": \"Χωρίς Ήχο\",\n\t\"proxy\": \"Διακομιστής Μεσολαβητής (Proxy)\",\n\t\"clearDownloads\": \"Εκκαθάριση Λήψεων\",\n\t\"compressor\": \"Συμπιεστής\",\n\t\"dragAndDropFiles\": \"Σύρετε και αφήστε αρχείο(α)\",\n\t\"chooseFiles\": \"Επιλέξτε Αρχείο(α)\",\n\t\"noFilesSelected\": \"Δεν έχουν επιλεγεί αρχεία\",\n\t\"videoFormat\": \"Μορφή Βίντεο\",\n\t\"videoEncoder\": \"Κωδικοποιητής Βίντεο\",\n\t\"compressionSpeed\": \"Ταχύτητα Συμπίεσης\",\n\t\"videoQuality\": \"Ποιότητα Βίντεο\",\n\t\"audioFormat\": \"Μορφή Ήχου\",\n\t\"outputSuffix\": \"Κατάληξη Εξόδου\",\n\t\"outputInSameFolder\": \"Έξοδος στον ίδιο φάκελο\",\n\t\"selectCustomFolder\": \"Επιλέξτε προσαρμοσμένο φάκελο\",\n\t\"startCompression\": \"Έναρξη Συμπίεσης\",\n\t\"cancel\": \"Ακύρωση\",\n\t\"errorClickForDetails\": \"Σφάλμα! Κάντε κλικ για λεπτομέρειες\",\n\t\"homebrewYtDlpWarning\": \"Πρέπει πρώτα να κατεβάσετε το yt-dlp από το homebrew\",\n\t\"openHomebrew\": \"Άνοιγμα Homebrew\",\n\t\"downloadHistory\": \"Ιστορικό Λήψεων\",\n\t\"close\": \"Κλείσιμο\",\n\t\"searchByTitleOrUrl\": \"Αναζήτηση με τίτλο ή URL...\",\n\t\"allFormats\": \"Όλες οι Μορφές\",\n\t\"exportAsJson\": \"Εξαγωγή ως JSON\",\n\t\"exportAsCsv\": \"Εξαγωγή ως CSV\",\n\t\"clearAllHistory\": \"Εκκαθάριση Όλου του Ιστορικού\",\n\t\"noDownloadsYet\": \"Δεν υπάρχουν Λήψεις ακόμα\",\n\t\"downloadHistoryPlaceholder\": \"Το ιστορικό λήψεών σας θα εμφανιστεί εδώ\",\n\t\"format\": \"Μορφή\",\n\t\"size\": \"Μέγεθος\",\n\t\"date\": \"Ημερομηνία\",\n\t\"duration\": \"Διάρκεια\",\n\t\"copyUrl\": \"Αντιγραφή URL\",\n\t\"open\": \"Άνοιγμα\",\n\t\"delete\": \"Διαγραφή\",\n\t\"totalDownloads\": \"Σύνολο Λήψεων\",\n\t\"totalSize\": \"Συνολικό Μέγεθος\",\n\t\"mostCommonFormat\": \"Πιο Συχνή Μορφή\",\n\t\"urlCopiedToClipboard\": \"Το URL αντιγράφηκε στο πρόχειρο!\",\n\t\"confirmDeleteHistoryItem\": \"Είστε σίγουροι ότι θέλετε να διαγράψετε αυτό το στοιχείο από το ιστορικό;\",\n\t\"confirmClearAllHistory\": \"Είστε σίγουροι ότι θέλετε να διαγράψετε όλο το ιστορικό λήψεων; Αυτό δεν αναιρείται!\",\n\t\"fileDoesNotExist\": \"Το αρχείο δεν υπάρχει πια\",\n\t\"updatingYtdlp\": \"Ενημέρωση yt-dlp\",\n\t\"updatedYtdlp\": \"Ενημερώθηκε το yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Αν το yt-dlp ενημερώνεται, περιμένετε να ολοκληρωθεί η ενημέρωση. Αν έχετε εγκαταστήσει το yt-dlp από τον εαυτό σας, ενημερώστε το.\",\n\t\"failedToDeleteHistoryItem\": \"Αποτυχία διαγραφής στοιχείου ιστορικού\",\n\t\"customArgsTxt\": \"Ορίστε προσαρμοσμένες επιλογές yt-dlp.\",\n\t\"learnMore\": \"Μάθε περισσότερα\",\n\t\"updateError\": \"Παρουσιάστηκε σφάλμα κατά τη διαδικασία ενημέρωσης\",\n\t\"unableToAccessDir\": \"Το πρόγραμμα δεν μπορεί να έχει πρόσβαση σε αυτόν τον φάκελο\",\n\t\"downloadingUpdate\": \"Λήψη ενημέρωσης\"\n}\n"
  },
  {
    "path": "translations/en.json",
    "content": "{\n\t\"preferences\": \"Preferences\",\n\t\"about\": \"About\",\n\t\"downloadLocation\": \"Download location\",\n\t\"currentDownloadLocation\": \"Current download location - \",\n\t\"enableTransparentDarkMode\": \"Enable transparent dark mode(only Linux, needs relaunch)\",\n\t\"downloadingNecessaryFilesWait\": \"Please wait, necessary files are being downloaded\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Title \",\n\t\"selectFormat\": \"Select Format \",\n\t\"download\": \"Download\",\n\t\"selectDownloadLocation\": \"Select Download Location\",\n\t\"moreOptions\": \"More options\",\n\t\"start\": \"Start\",\n\t\"selectLanguageRelaunch\": \"Select Language (Requires relaunch)\",\n\t\"downloadTimeRange\": \"Download particular time-range\",\n\t\"end\": \"End\",\n\t\"timeRangeStartEmptyHint\": \"If kept empty, it will start from the beginning\",\n\t\"timeRangeEndEmptyHint\": \"If kept empty, it will be downloaded to the end\",\n\t\"homepage\": \"Homepage\",\n\t\"aboutAppDescription\": \"It's a Free and Open Source app built on top of Node.js and Electron. yt-dlp has been used for downloading\",\n\t\"sourceCodeAvailable\": \"Source Code is available \",\n\t\"here\": \"here\",\n\t\"processing\": \"Processing\",\n\t\"errorNetworkOrUrl\": \"Some error has occurred. Check your network and use correct URL\",\n\t\"errorFailedFileDownload\": \"Failed to download necessary files. Please check your network and try again\",\n\t\"tryAgain\": \"Try again\",\n\t\"unknownSize\": \"Unknown size\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Unknown quality\",\n\t\"downloading\": \"Downloading...\",\n\t\"errorHoverForDetails\": \"Some error has occurred. Hover to see details\",\n\t\"fileSavedSuccessfully\": \"File saved successfully\",\n\t\"fileSavedClickToOpen\": \"File saved. Click to Open\",\n\t\"preparing\": \"Preparing...\",\n\t\"progress\": \"Progress\",\n\t\"speed\": \"Speed\",\n\t\"quality\": \"Quality\",\n\t\"restartApp\": \"Restart app\",\n\t\"subtitles\": \"Subtitles\",\n\t\"downloadSubtitlesAvailable\": \"Download subtitles if available\",\n\t\"downloadSubtitlesAuto\": \"Download auto generated subtitles\",\n\t\"extractAudioFromVideo\": \"Extract Audio from Video\",\n\t\"extract\": \"Extract\",\n\t\"downloadingNecessaryFiles\": \"Downloading necessary files\",\n\t\"qualityLow\": \"low\",\n\t\"qualityMedium\": \"medium\",\n\t\"appDescription\": \"ytDownloader lets you download videos and audios from hundreds of sites like Youtube, Facebook, Instagram, Tiktok, Twitter and so on\",\n\t\"pasteText\": \"Click to paste video link from clipboard\",\n\t\"pastePlaylistLinkTooltip\": \"Click to paste playlist link from clipboard\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"Downloading playlist:\",\n\t\"downloadPlaylistButton\": \"Download playlist\",\n\t\"playlistDownloaded\": \"Playlist downloaded\",\n\t\"cookiesWarning\": \"This option lets you download restricted content. You will get errors if cookies are not there\",\n\t\"selectBrowserForCookies\": \"Select browser to use cookies from\",\n\t\"none\": \"None\",\n\t\"updateAvailableDownloadPrompt\": \"A new version is available, do you want to download it?\",\n\t\"updateAvailablePrompt\": \"A new version is available, do you want to update?\",\n\t\"update\": \"Update\",\n\t\"no\": \"No\",\n\t\"installAndRestartPrompt\": \"Install and restart now?\",\n\t\"restart\": \"Restart\",\n\t\"later\": \"Later\",\n\t\"extractAudio\": \"Extract Audio\",\n\t\"selectVideoFormat\": \"Select Video Format \",\n\t\"selectAudioFormat\": \"Select Audio Format \",\n\t\"maxActiveDownloads\": \"Maximum number of active downloads\",\n\t\"preferredVideoQuality\": \"Preferred video quality\",\n\t\"preferredAudioFormat\": \"Preferred audio format\",\n\t\"best\": \"Best\",\n\t\"fileSaved\": \"File saved.\",\n\t\"openDownloadFolder\": \"Open download folder\",\n\t\"path\": \"Path:\",\n\t\"selectConfigFile\": \"Select config file\",\n\t\"useConfigFile\": \"Use configuration file\",\n\t\"playlistFilenameFormat\": \"Filename format for playlists\",\n\t\"playlistFolderNameFormat\": \"Folder name format for playlists\",\n\t\"resetToDefault\": \"Reset to default\",\n\t\"playlistRange\": \"Playlist range\",\n\t\"thumbnail\": \"Thumbnail\",\n\t\"linkAdded\": \"Link added\",\n\t\"downloadThumbnails\": \"Download thumbnails\",\n\t\"saveVideoLinksToFile\": \"Save video links to a file\",\n\t\"closeAppToTray\": \"Close app to system tray\",\n\t\"useConfigFileCheckbox\": \"Use config file\",\n\t\"openApp\": \"Open app\",\n\t\"pasteVideoLink\": \"Paste video link\",\n\t\"quit\": \"Quit\",\n\t\"errorDetails\": \"Error Details\",\n\t\"clickToCopy\": \"Click to copy\",\n\t\"copiedText\": \"Copied text\",\n\t\"qualityNormal\": \"Normal\",\n\t\"qualityGood\": \"Good\",\n\t\"qualityBad\": \"Bad\",\n\t\"qualityWorst\": \"Worst\",\n\t\"selectQuality\": \"Select Quality\",\n\t\"disableAutoUpdates\": \"Disable auto updates\",\n\t\"qualityUltraLow\": \"ultralow\",\n\t\"closeAppOnFinish\": \"Close app when download finishes\",\n\t\"auto\": \"Auto\",\n\t\"theme\": \"Theme\",\n\t\"themeLight\": \"Light\",\n\t\"themeDark\": \"Dark\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"Preferred video codec\",\n\t\"showMoreFormatOptions\": \"Show more format options\",\n\t\"flatsealPermissionWarning\": \"You need to give the app permission to access home directory to use this. You can do it with Flatseal by enabling the permission with text 'filesystem=home'\",\n\t\"noAudio\": \"No Audio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Clear Downloads\",\n\t\"compressor\": \"Compressor\",\n\t\"dragAndDropFiles\": \"Drag and drop file(s)\",\n\t\"chooseFiles\": \"Choose File(s)\",\n\t\"noFilesSelected\": \"No files selected\",\n\t\"videoFormat\": \"Video format\",\n\t\"videoEncoder\": \"Video Encoder\",\n\t\"compressionSpeed\": \"Compression Speed\",\n\t\"videoQuality\": \"Video Quality\",\n\t\"audioFormat\": \"Audio Format\",\n\t\"outputSuffix\": \"Output suffix\",\n\t\"outputInSameFolder\": \"Output in same folder\",\n\t\"selectCustomFolder\": \"Select custom folder\",\n\t\"startCompression\": \"Start Compression\",\n\t\"cancel\": \"Cancel\",\n\t\"errorClickForDetails\": \"Error! Click for details\",\n\t\"homebrewYtDlpWarning\": \"You need to download yt-dlp from homebrew first\",\n\t\"openHomebrew\": \"Open Homebrew\",\n\t\"downloadHistory\": \"Download History\",\n\t\"close\": \"Close\",\n\t\"searchByTitleOrUrl\": \"Search by title or URL...\",\n\t\"allFormats\": \"All Formats\",\n\t\"exportAsJson\": \"Export as JSON\",\n\t\"exportAsCsv\": \"Export as CSV\",\n\t\"clearAllHistory\": \"Clear All History\",\n\t\"noDownloadsYet\": \"No Downloads Yet\",\n\t\"downloadHistoryPlaceholder\": \"Your download history will appear here\",\n\t\"format\": \"Format\",\n\t\"size\": \"Size\",\n\t\"date\": \"Date\",\n\t\"duration\": \"Duration\",\n\t\"copyUrl\": \"Copy URL\",\n\t\"open\": \"Open\",\n\t\"delete\": \"Delete\",\n\t\"totalDownloads\": \"Total Downloads\",\n\t\"totalSize\": \"Total Size\",\n\t\"mostCommonFormat\": \"Most Common Format\",\n\t\"urlCopiedToClipboard\": \"URL copied to clipboard!\",\n\t\"confirmDeleteHistoryItem\": \"Are you sure you want to delete this item from history?\",\n\t\"confirmClearAllHistory\": \"Are you sure you want to clear all download history? This cannot be undone!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n\n}\n"
  },
  {
    "path": "translations/es-ES.json",
    "content": "{\n\t\"preferences\": \"Preferencias\",\n\t\"about\": \"Acerca de\",\n\t\"downloadLocation\": \"Ubicación de la descarga\",\n\t\"currentDownloadLocation\": \"Ubicación de la descarga actual - \",\n\t\"enableTransparentDarkMode\": \"Habilitar el modo oscuro transparente (solo en Linux, necesita relanzar)\",\n\t\"downloadingNecessaryFilesWait\": \"Espere, se están descargando los archivos necesarios\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Título \",\n\t\"selectFormat\": \"Seleccionar formato \",\n\t\"download\": \"Descargar\",\n\t\"selectDownloadLocation\": \"Seleccione la ubicación de la descarga\",\n\t\"moreOptions\": \"Mas opciones\",\n\t\"start\": \"Inicio\",\n\t\"selectLanguageRelaunch\": \"Seleccionar idioma (Requiere relanzar)\",\n\t\"downloadTimeRange\": \"Descargar un rango de tiempo particular\",\n\t\"end\": \"Término\",\n\t\"timeRangeStartEmptyHint\": \"Si se mantiene vacío, comenzará desde el principio\",\n\t\"timeRangeEndEmptyHint\": \"Si se mantiene vacío, se descargará hasta el final\",\n\t\"homepage\": \"Página web\",\n\t\"aboutAppDescription\": \"Es una aplicación gratuita y de código abierto construida sobre Node.js y Electron. yt-dlp se ha utilizado para descargar\",\n\t\"sourceCodeAvailable\": \"El código fuente está disponible \",\n\t\"here\": \"aquí\",\n\t\"processing\": \"Procesando\",\n\t\"errorNetworkOrUrl\": \"Ha ocurrido algún error. Verifique su red y use la URL correcta\",\n\t\"errorFailedFileDownload\": \"No se han podido descargar los archivos necesarios. Por favor, compruebe su red e inténtelo de nuevo\",\n\t\"tryAgain\": \"Inténtelo de nuevo\",\n\t\"unknownSize\": \"Tamaño desconocido\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Calidad desconocida\",\n\t\"downloading\": \"Descargando...\",\n\t\"errorHoverForDetails\": \"Ha ocurrido algún error. Pase el cursor para ver los detalles\",\n\t\"fileSavedSuccessfully\": \"Archivo guardado con éxito\",\n\t\"fileSavedClickToOpen\": \"Archivo guardado. Haga clic para abrir\",\n\t\"preparing\": \"Preparando...\",\n\t\"progress\": \"Progreso\",\n\t\"speed\": \"Velocidad\",\n\t\"quality\": \"Calidad\",\n\t\"restartApp\": \"Reiniciar la aplicación\",\n\t\"subtitles\": \"Subtítulos\",\n\t\"downloadSubtitlesAvailable\": \"Descargar los subtítulos si están disponibles\",\n\t\"downloadSubtitlesAuto\": \"Descargar subtítulos generados automáticamente\",\n\t\"extractAudioFromVideo\": \"Extraer el audio del vídeo\",\n\t\"extract\": \"Extraer\",\n\t\"downloadingNecessaryFiles\": \"Descarga de los archivos necesarios\",\n\t\"qualityLow\": \"baja\",\n\t\"qualityMedium\": \"media\",\n\t\"appDescription\": \"ytDownloader te permite descargar vídeos y audios de cientos de sitios como Youtube, Facebook, Instagram, Tiktok, Twitter, etc.\",\n\t\"pasteText\": \"Haga clic para pegar enlace de vídeo del portapapeles\",\n\t\"pastePlaylistLinkTooltip\": \"Haga clic para pegar el enlace de la lista de reproducción del portapapeles\",\n\t\"link\": \"Enlace:\",\n\t\"downloadingPlaylist\": \"Descargando lista de reproducción:\",\n\t\"downloadPlaylistButton\": \"Descargar lista de reproducción\",\n\t\"playlistDownloaded\": \"Lista de reproducción descargada\",\n\t\"cookiesWarning\": \"Esta opción le permite descargar contenido restringido. Obtendrá errores si no hay cookies\",\n\t\"selectBrowserForCookies\": \"Seleccionar navegador para usar cookies de\",\n\t\"none\": \"Ninguna\",\n\t\"updateAvailableDownloadPrompt\": \"Hay una nueva versión disponible, ¿quieres descargarla?\",\n\t\"updateAvailablePrompt\": \"Hay una nueva versión disponible, ¿quieres actualizar?\",\n\t\"update\": \"Actualización\",\n\t\"no\": \"No\",\n\t\"installAndRestartPrompt\": \"¿Instalar y reiniciar ahora?\",\n\t\"restart\": \"Reiniciar\",\n\t\"later\": \"Luego\",\n\t\"extractAudio\": \"Extraer Audio\",\n\t\"selectVideoFormat\": \"Seleccionar formato de vídeo \",\n\t\"selectAudioFormat\": \"Seleccionar formato de audio \",\n\t\"maxActiveDownloads\": \"Número máximo de descargas activas\",\n\t\"preferredVideoQuality\": \"Calidad de vídeo preferida\",\n\t\"preferredAudioFormat\": \"Formato de audio preferido\",\n\t\"best\": \"Mejor\",\n\t\"fileSaved\": \"Archivo guardado\",\n\t\"openDownloadFolder\": \"Abrir carpeta de descargas\",\n\t\"path\": \"Ruta:\",\n\t\"selectConfigFile\": \"Seleccionar archivo de configuración\",\n\t\"useConfigFile\": \"Usar archivo de configuración\",\n\t\"playlistFilenameFormat\": \"Formato de archivo para listas\",\n\t\"playlistFolderNameFormat\": \"Formato de nombre de carpeta para listas\",\n\t\"resetToDefault\": \"Restablecer por defecto\",\n\t\"playlistRange\": \"Rango de lista\",\n\t\"thumbnail\": \"Miniatura\",\n\t\"linkAdded\": \"Enlace añadido\",\n\t\"downloadThumbnails\": \"Descargar miniaturas\",\n\t\"saveVideoLinksToFile\": \"Guardar enlaces de vídeo en un archivo\",\n\t\"closeAppToTray\": \"Cerrar aplicación a la bandeja del sistema\",\n\t\"useConfigFileCheckbox\": \"Usar archivo de configuración\",\n\t\"openApp\": \"Abrir app\",\n\t\"pasteVideoLink\": \"Pegar enlace de vídeo\",\n\t\"quit\": \"Salir\",\n\t\"errorDetails\": \"Detalles del error\",\n\t\"clickToCopy\": \"Clic para copiar\",\n\t\"copiedText\": \"Texto copiado\",\n\t\"qualityNormal\": \"Estándar\",\n\t\"qualityGood\": \"Bueno\",\n\t\"qualityBad\": \"Mal\",\n\t\"qualityWorst\": \"Peor\",\n\t\"selectQuality\": \"Seleccionar calidad\",\n\t\"disableAutoUpdates\": \"Desactivar actualizaciones automáticas\",\n\t\"qualityUltraLow\": \"ultra bajo\",\n\t\"closeAppOnFinish\": \"Cerrar aplicación cuando finalice la descarga\",\n\t\"auto\": \"Auto\",\n\t\"theme\": \"Tema\",\n\t\"themeLight\": \"Ligero\",\n\t\"themeDark\": \"Oscuro\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matriz\",\n\t\"themeSolarizedDark\": \"Oscuro Solar\",\n\t\"preferredVideoCodec\": \"Código de vídeo preferido\",\n\t\"showMoreFormatOptions\": \"Mostrar más opciones de formato\",\n\t\"flatsealPermissionWarning\": \"Debe otorgar permiso a la aplicación para acceder al directorio de inicio para usar esto. Puede hacerlo con Flatseal habilitando el permiso con el texto 'filesystem=home'\",\n\t\"noAudio\": \"Sin audio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Borrar Descargas\",\n\t\"compressor\": \"Compresor\",\n\t\"dragAndDropFiles\": \"Arrastrar y soltar archivo(s)\",\n\t\"chooseFiles\": \"Elegir archivo(s)\",\n\t\"noFilesSelected\": \"No hay archivos seleccionados\",\n\t\"videoFormat\": \"Formato de vídeo\",\n\t\"videoEncoder\": \"Codificador de Vídeo\",\n\t\"compressionSpeed\": \"Velocidad de compresión\",\n\t\"videoQuality\": \"Calidad del vídeo\",\n\t\"audioFormat\": \"Formato de audio\",\n\t\"outputSuffix\": \"Sufijo de salida\",\n\t\"outputInSameFolder\": \"Salida en la misma carpeta\",\n\t\"selectCustomFolder\": \"Seleccionar carpeta personalizada\",\n\t\"startCompression\": \"Iniciar compresión\",\n\t\"cancel\": \"Cancelar\",\n\t\"errorClickForDetails\": \"Detalles\",\n\t\"homebrewYtDlpWarning\": \"Necesitas descargar yt-dlp desde homebrew primero\",\n\t\"openHomebrew\": \"Abrir Homebrew\",\n\t\"downloadHistory\": \"Historial de Descargas\",\n\t\"close\": \"Cerrar\",\n\t\"searchByTitleOrUrl\": \"Buscar por título o URL...\",\n\t\"allFormats\": \"Todos los formatos\",\n\t\"exportAsJson\": \"Exportar como JSON\",\n\t\"exportAsCsv\": \"Exportar a CSV\",\n\t\"clearAllHistory\": \"Borrar todo el historial\",\n\t\"noDownloadsYet\": \"Aún no hay descargas\",\n\t\"downloadHistoryPlaceholder\": \"Tu historial de descargas aparecerá aquí\",\n\t\"format\": \"Formato\",\n\t\"size\": \"Tamaño\",\n\t\"date\": \"Fecha\",\n\t\"duration\": \"Duración\",\n\t\"copyUrl\": \"Copiar URL\",\n\t\"open\": \"Abrir\",\n\t\"delete\": \"Eliminar\",\n\t\"totalDownloads\": \"Descargas Totales\",\n\t\"totalSize\": \"Tamaño Total\",\n\t\"mostCommonFormat\": \"Formato Más Común\",\n\t\"urlCopiedToClipboard\": \"¡URL copiada al portapapeles!\",\n\t\"confirmDeleteHistoryItem\": \"¿Estás seguro de que quieres eliminar este elemento del historial?\",\n\t\"confirmClearAllHistory\": \"¿Estás seguro de que quieres borrar todo el historial de descargas? ¡Esta acción no se puede deshacer!\",\n\t\"fileDoesNotExist\": \"El archivo ya no existe\",\n\t\"updatingYtdlp\": \"Actualizando yt-dlp\",\n\t\"updatedYtdlp\": \"Actualizado yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Si yt-dlp está actualizando, espere a que la actualización termine. Si usted mismo ha instalado yt-dlp, por favor actualícela.\",\n\t\"failedToDeleteHistoryItem\": \"Error al eliminar el elemento del historial\",\n\t\"customArgsTxt\": \"Establecer opciones personalizadas yt-dlp.\",\n\t\"learnMore\": \"Saber más\",\n\t\"updateError\": \"Se produjo un error durante el proceso de actualización\",\n\t\"unableToAccessDir\": \"El programa no puede acceder a esa carpeta\",\n\t\"downloadingUpdate\": \"Descargando actualización\"\n}\n"
  },
  {
    "path": "translations/fa-IR.json",
    "content": "{\n\t\"preferences\": \"تنظیمات\",\n\t\"about\": \"درباره\",\n\t\"downloadLocation\": \"مکان بارگیری\",\n\t\"currentDownloadLocation\": \"مکان بارگیری فعلی \",\n\t\"enableTransparentDarkMode\": \"فعال‌سازی حالت تاریک شفاف(فقط در لینوکس، نیازمند راه‌اندازی‌مجدد)\",\n\t\"downloadingNecessaryFilesWait\": \"لطفا صبر کنید، پرونده‌های ضروری در حال بارگیری هستند\",\n\t\"video\": \"ویدیو\",\n\t\"audio\": \"صدا\",\n\t\"title\": \"عنوان \",\n\t\"selectFormat\": \"انتخاب فرمت \",\n\t\"download\": \"بارگیری\",\n\t\"selectDownloadLocation\": \"انتخاب مکان بارگیری\",\n\t\"moreOptions\": \"گزینه‌های بیشتر\",\n\t\"start\": \"ابتدا\",\n\t\"selectLanguageRelaunch\": \"انتخاب زبان (نیازمند راه‌اندازی‌مجدد)\",\n\t\"downloadTimeRange\": \"بارگیری بازه‌ی زمانی خاص\",\n\t\"end\": \"انتها\",\n\t\"timeRangeStartEmptyHint\": \"اگر خالی گذاشته‌شود، از ابتدا شروع خواهد کرد\",\n\t\"timeRangeEndEmptyHint\": \"اگر خالی گذاشته‌شود، تا انتها بارگیری خواهد کرد\",\n\t\"homepage\": \"صفحه‌ی نخست\",\n\t\"aboutAppDescription\": \"نرم‌افزاری رایگان و منبع-باز است که برپایه‌ی Node.js و Electron ساخته شده‌است. yt-dlp برای بارگیری به کار رفته‌است\",\n\t\"sourceCodeAvailable\": \"کد منبع دردسترس است \",\n\t\"here\": \"این‌جا\",\n\t\"processing\": \"درحال پردازش\",\n\t\"errorNetworkOrUrl\": \"خطایی رخ داده‌است. اتصال شبکه‌ی خود را بررسی کرده و از نشانی اینترنتی صحیح استفاده کنید\",\n\t\"errorFailedFileDownload\": \"بارگیری پرونده‌های ضروری ناموفق بود. لطفا اتصال شبکه‌ی خود را بررسی کرده و دوباره تلاش کنید\",\n\t\"tryAgain\": \"دوباره تلاش‌ کن\",\n\t\"unknownSize\": \"اندازه‌ی نامشخص\",\n\t\"megabyte\": \"مگابایت\",\n\t\"unknownQuality\": \"کیفیت نامشخص\",\n\t\"downloading\": \"درحال بارگیری...\",\n\t\"errorHoverForDetails\": \"خطایی رخ داده‌است. برای دیدن جزئیات نشانگر موس را نگه‌دارید\",\n\t\"fileSavedSuccessfully\": \"پرونده با موفقیت ذخیره شد\",\n\t\"fileSavedClickToOpen\": \"پرونده ذخیره‌شد. برای بازکردن کلیک کنید\",\n\t\"preparing\": \"درحال آماده‌سازی...\",\n\t\"progress\": \"پیشرفت\",\n\t\"speed\": \"سرعت\",\n\t\"quality\": \"کیفیت\",\n\t\"restartApp\": \"راه‌اندازی مجدد برنامه\",\n\t\"subtitles\": \"زیرنویس‌ها\",\n\t\"downloadSubtitlesAvailable\": \"در صورت وجود زیرنویس‌ها بارگیری شود\",\n\t\"downloadSubtitlesAuto\": \"زیرنویس‌های به‌طور‌خودکار تولیدشده بارگیری شود\",\n\t\"extractAudioFromVideo\": \"صدا از ویدیو استخراج شود\",\n\t\"extract\": \"استخراج\",\n\t\"downloadingNecessaryFiles\": \"درحال بارگیری پرونده‌های ضروری\",\n\t\"qualityLow\": \"پایین\",\n\t\"qualityMedium\": \"متوسط\",\n\t\"appDescription\": \"ytDownloader به شما امکان بارگیری ویدیو و صدا را از صدها سایت مانند یوتیوب، فیس‌بوک، اینستاگرام، تیک‌تاک، توییتر و غیره می‌دهد\",\n\t\"pasteText\": \"برای چسباندن پیوند ویدیو از کلیپ‌بورد کلیک کنید\",\n\t\"pastePlaylistLinkTooltip\": \"برای چسباندن پیوند لیست پخش از کلیپ‌بورد کلیک کنید\",\n\t\"link\": \"پیوند:\",\n\t\"downloadingPlaylist\": \"درحال بارگیری لیست پخش:\",\n\t\"downloadPlaylistButton\": \"بارگیری لیست پخش\",\n\t\"playlistDownloaded\": \"لیست پخش بارگیری شد\",\n\t\"cookiesWarning\": \"این گزینه به شما اجازه می‌دهد محتوای محدودشده را بارگیری کنید. اگر کوکی‌ها موجود نباشند اخطار دریافت خواهید‌کرد\",\n\t\"selectBrowserForCookies\": \"انتخاب مرورگر برای استفاده‌ی کوکی‌ها از آن\",\n\t\"none\": \"هیچ‌کدام\",\n\t\"updateAvailableDownloadPrompt\": \"نسخه‌ی جدیدی دردسترس است، می‌خواهید آن را بارگیری کنید؟\",\n\t\"updateAvailablePrompt\": \"نسخه‌ی جدیدی دردسترس است، می‌خواهید آن را بروزرسانی کنید؟\",\n\t\"update\": \"بروزرسانی\",\n\t\"no\": \"نه\",\n\t\"installAndRestartPrompt\": \"اکنون نصب و راه‌اندازی مجدد انجام شود؟\",\n\t\"restart\": \"راه‌اندازی مجدد\",\n\t\"later\": \"بعداً\",\n\t\"extractAudio\": \"استخراج صدا\",\n\t\"selectVideoFormat\": \"انتخاب فرمت ویدیو \",\n\t\"selectAudioFormat\": \"انتخاب فرمت صدا \",\n\t\"maxActiveDownloads\": \"حداکثر تعداد دانلودهای فعال\",\n\t\"preferredVideoQuality\": \"کیفیت ویدیوی ترجیحی\",\n\t\"preferredAudioFormat\": \"فرمت صوتی ترجیحی\",\n\t\"best\": \"بهترین\",\n\t\"fileSaved\": \"پرونده ذخیره شد.\",\n\t\"openDownloadFolder\": \"بازکردن پوشهٔ بارگیری ها\",\n\t\"path\": \"مسیر:\",\n\t\"selectConfigFile\": \"فایل پیکربندی را انتخاب کنید\",\n\t\"useConfigFile\": \"از فایل تنظیمات استفاده کنید\",\n\t\"playlistFilenameFormat\": \"فرمت نام فایل برای لیست های پخش\",\n\t\"playlistFolderNameFormat\": \"فرمت نام پوشه برای لیست های پخش\",\n\t\"resetToDefault\": \"بازگردانی به حالت پیش فرض\",\n\t\"playlistRange\": \"محدوده لیست پخش\",\n\t\"thumbnail\": \"تصویر بند انگشتی\",\n\t\"linkAdded\": \"لینک اضافه شد\",\n\t\"downloadThumbnails\": \"تصاویر کوچک را دانلود کنید\",\n\t\"saveVideoLinksToFile\": \"لینک های ویدیو را در یک فایل ذخیره کنید\",\n\t\"closeAppToTray\": \"برنامه را به سینی سیستم ببندید\",\n\t\"useConfigFileCheckbox\": \"از فایل کانفیگ استفاده کنید\",\n\t\"openApp\": \"اپلیکیشن را باز کن\",\n\t\"pasteVideoLink\": \"پیوند ویدیو را بچسبانید\",\n\t\"quit\": \"ترک کنید\",\n\t\"errorDetails\": \"جزئیات خطا\",\n\t\"clickToCopy\": \"برای کپی کلیک کنید\",\n\t\"copiedText\": \"پیوند کپی شده\",\n\t\"qualityNormal\": \"عادی\",\n\t\"qualityGood\": \"درست\",\n\t\"qualityBad\": \"بد\",\n\t\"qualityWorst\": \"بدترین\",\n\t\"selectQuality\": \"کیفیت را انتخاب کنید\",\n\t\"disableAutoUpdates\": \"به روز رسانی خودکار را غیرفعال کنید\",\n\t\"qualityUltraLow\": \"بسیار کم\",\n\t\"closeAppOnFinish\": \"پس از پایان دانلود برنامه را ببندید\",\n\t\"auto\": \"خودکار\",\n\t\"theme\": \"تِم\",\n\t\"themeLight\": \"روشن\",\n\t\"themeDark\": \"تیره\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"ماتریکس\",\n\t\"themeSolarizedDark\": \"تاریک خورشیدی\",\n\t\"preferredVideoCodec\": \"کدک ویدیویی ترجیح داده شده\",\n\t\"showMoreFormatOptions\": \"نمایش گزینه های فرمت بیشتر\",\n\t\"flatsealPermissionWarning\": \"برای استفاده از این باید به برنامه اجازه دسترسی به دایرکتوری اصلی را بدهید. شما می توانید آن را با Flatseal با فعال کردن مجوز با متن 'filesystem=home' انجام دهید\",\n\t\"noAudio\": \"بدون صدا\",\n\t\"proxy\": \"پروکسی\",\n\t\"clearDownloads\": \"پاک کردن دانلودها\",\n\t\"compressor\": \"فشرده‌ساز\",\n\t\"dragAndDropFiles\": \"فایل(ها) را بکشید و رها کنید\",\n\t\"chooseFiles\": \"انتخاب فایل(ها)\",\n\t\"noFilesSelected\": \"هیچ فایلی انتخاب نشده است\",\n\t\"videoFormat\": \"فرمت ویدیو\",\n\t\"videoEncoder\": \"کدگذار ویدیو\",\n\t\"compressionSpeed\": \"سرعت فشرده سازی\",\n\t\"videoQuality\": \"کیفیت ویدیو\",\n\t\"audioFormat\": \"فرمت صوتی\",\n\t\"outputSuffix\": \"پسوند خروجی\",\n\t\"outputInSameFolder\": \"خروجی در همان پوشه\",\n\t\"selectCustomFolder\": \"انتخاب پوشه سفارشی\",\n\t\"startCompression\": \"شروع فشرده‌سازی\",\n\t\"cancel\": \"لغو\",\n\t\"errorClickForDetails\": \"خطا! برای جزئیات کلیک کنید\",\n\t\"homebrewYtDlpWarning\": \"ابتدا باید yt-dlp را از Homebrew دانلود کنید\",\n\t\"openHomebrew\": \"باز کردن Homebrew\",\n\t\"downloadHistory\": \"تاریخچه دانلود\",\n\t\"close\": \"بستن\",\n\t\"searchByTitleOrUrl\": \"جستجو بر اساس عنوان یا نشانی...\",\n\t\"allFormats\": \"همه فرمت‌ها\",\n\t\"exportAsJson\": \"خروجی به صورت JSON\",\n\t\"exportAsCsv\": \"خروجی به صورت CSV\",\n\t\"clearAllHistory\": \"پاک کردن تمام تاریخچه\",\n\t\"noDownloadsYet\": \"هنوز دانلودی انجام نشده است\",\n\t\"downloadHistoryPlaceholder\": \"تاریخچه دانلود شما در اینجا ظاهر خواهد شد\",\n\t\"format\": \"فرمت\",\n\t\"size\": \"اندازه\",\n\t\"date\": \"تاریخ\",\n\t\"duration\": \"مدت زمان\",\n\t\"copyUrl\": \"کپی نشانی\",\n\t\"open\": \"باز کردن\",\n\t\"delete\": \"حذف\",\n\t\"totalDownloads\": \"کل دانلودها\",\n\t\"totalSize\": \"اندازه کل\",\n\t\"mostCommonFormat\": \"پرکاربردترین فرمت\",\n\t\"urlCopiedToClipboard\": \"نشانی در کلیپ‌بورد کپی شد!\",\n\t\"confirmDeleteHistoryItem\": \"آیا مطمئن هستید که می‌خواهید این مورد را از تاریخچه حذف کنید؟\",\n\t\"confirmClearAllHistory\": \"آیا مطمئن هستید که می‌خواهید کل تاریخچه دانلود را پاک کنید؟ این عمل قابل برگشت نیست!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/fi-FI.json",
    "content": "{\n\t\"preferences\": \"Asetukset\",\n\t\"about\": \"Tietoja\",\n\t\"downloadLocation\": \"Latausten kohdekansio\",\n\t\"currentDownloadLocation\": \"Nykyinen kohde latauksille - \",\n\t\"enableTransparentDarkMode\": \"Kytke päälle tumma läpinäkyvä tila (vain Linux, ohjelman uudelleenkäynnistys tarvitaan)\",\n\t\"downloadingNecessaryFilesWait\": \"Ole hyvä ja odota, tarvittavia tiedostoja ladataan juuri\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Ääni\",\n\t\"title\": \"Nimike \",\n\t\"selectFormat\": \"Valitse muoto \",\n\t\"download\": \"Lataa\",\n\t\"selectDownloadLocation\": \"Valitse kohdekansio lataukselle\",\n\t\"moreOptions\": \"Lisävaihtoehdot\",\n\t\"start\": \"Aloita\",\n\t\"selectLanguageRelaunch\": \"Valitse kieli (uudelleenkäynnistys tarvitaan)\",\n\t\"downloadTimeRange\": \"Lataa tietty aikaväli\",\n\t\"end\": \"Loppu\",\n\t\"timeRangeStartEmptyHint\": \"Mikäli tyhjänä, tämä alkaa alusta\",\n\t\"timeRangeEndEmptyHint\": \"Mikäli tyhjänä, se ladataan loppuun\",\n\t\"homepage\": \"Kotisivusto\",\n\t\"aboutAppDescription\": \"Vapaa ja ohjelmakoodiltaan avoin sovellus rakennettuna Node.js:n ja Electron:in päälle. yt-dlp:tä on käytetty toteuttamaan lataukset\",\n\t\"sourceCodeAvailable\": \"Lähdekoodi on saatavilla \",\n\t\"here\": \"täällä\",\n\t\"processing\": \"Käsitellään\",\n\t\"errorNetworkOrUrl\": \"Ilmeni jokin virhe. Tarkista verkkoyhteytesi ja käytä kelvollista URL-osoitetta\",\n\t\"errorFailedFileDownload\": \"Tarvittavia tiedostoja ei saatu ladattua. Tarkista verkkoyhteytesi ja koeta uudelleen\",\n\t\"tryAgain\": \"Yritä uudelleen\",\n\t\"unknownSize\": \"Tuntematon koko\",\n\t\"megabyte\": \"Mt\",\n\t\"unknownQuality\": \"Tuntematon laatu\",\n\t\"downloading\": \"Ladataan...\",\n\t\"errorHoverForDetails\": \"Ilmeni jokin virhe. Ohjaa hiiri ylle nähdäksesi virheen yksityiskohdat\",\n\t\"fileSavedSuccessfully\": \"Tiedosto tallennettu onnistuneesti\",\n\t\"fileSavedClickToOpen\": \"Tiedosto tallennettu. Napsauta tästä avataksesi kohdekansion\",\n\t\"preparing\": \"Valmistellaan...\",\n\t\"progress\": \"Edistyminen\",\n\t\"speed\": \"Nopeus\",\n\t\"quality\": \"Laatu\",\n\t\"restartApp\": \"Uudelleenkäynnistä sovellus\",\n\t\"subtitles\": \"Tekstitykset\",\n\t\"downloadSubtitlesAvailable\": \"Lataa tekstitykset mikäli tarjolla\",\n\t\"downloadSubtitlesAuto\": \"Lataa automaattisesti luodut tekstitykset\",\n\t\"extractAudioFromVideo\": \"Eriytä ääniraita videosta\",\n\t\"extract\": \"Vedä ääniraita\",\n\t\"downloadingNecessaryFiles\": \"Ladataan tarvittavia tiedostoja\",\n\t\"qualityLow\": \"matala\",\n\t\"qualityMedium\": \"keskitaso\",\n\t\"appDescription\": \"ytDownloader mahdollistaa videoiden ja äänen lataamisen talteen sadoilta sivustoilta kuten YouTube, Facebook, Instagram, Tiktok, Twitter ja niin edelleen\",\n\t\"pasteText\": \"Napsauta liittääksesi videolinkin leikepöydältä\",\n\t\"pastePlaylistLinkTooltip\": \"Napsauta liittääksesi soittolistan linkin leikepöydältä\",\n\t\"link\": \"Linkki:\",\n\t\"downloadingPlaylist\": \"Ladataan soittolista:\",\n\t\"downloadPlaylistButton\": \"Lataa soittolista\",\n\t\"playlistDownloaded\": \"Soittolista ladattu\",\n\t\"cookiesWarning\": \"Tämän vaihtoehdon avulla voit ladata rajoitetun sisällön. Saat virheitä, jos evästeitä ei ole\",\n\t\"selectBrowserForCookies\": \"Valitse selain käyttääksesi evästeitä\",\n\t\"none\": \"Ei ole\",\n\t\"updateAvailableDownloadPrompt\": \"Uusi julkaisu on saatavilla, haluatko ladata sen?\",\n\t\"updateAvailablePrompt\": \"Uusi julkaisu on saatavilla, haluatko päivittää?\",\n\t\"update\": \"Päivitä\",\n\t\"no\": \"Ei\",\n\t\"installAndRestartPrompt\": \"Asenna ja uudelleenkäynnistä nyt?\",\n\t\"restart\": \"Uudelleenkäynnistys\",\n\t\"later\": \"Myöhemmin\",\n\t\"extractAudio\": \"Pura Ääni\",\n\t\"selectVideoFormat\": \"Valitse Videon Muoto \",\n\t\"selectAudioFormat\": \"Valitse Äänen Muoto \",\n\t\"maxActiveDownloads\": \"Aktiivisten latausten enimmäismäärä\",\n\t\"preferredVideoQuality\": \"Ensisijainen videon laatu\",\n\t\"preferredAudioFormat\": \"Haluttu ääniformaatti\",\n\t\"best\": \"Paras\",\n\t\"fileSaved\": \"Tiedosto tallennettu\",\n\t\"openDownloadFolder\": \"Avaa latauskansio\",\n\t\"path\": \"Polku:\",\n\t\"selectConfigFile\": \"Valitse konfiguraatiotiedosto\",\n\t\"useConfigFile\": \"Käytä asetustiedostoa\",\n\t\"playlistFilenameFormat\": \"Soittolistojen tiedostonimen muoto\",\n\t\"playlistFolderNameFormat\": \"Soittolistojen kansion nimen muoto\",\n\t\"resetToDefault\": \"Palauta oletusasetukset\",\n\t\"playlistRange\": \"Soittolistan alue\",\n\t\"thumbnail\": \"Pikkukuva\",\n\t\"linkAdded\": \"Linkki lisätty\",\n\t\"downloadThumbnails\": \"Lataa pikkukuvat\",\n\t\"saveVideoLinksToFile\": \"Tallenna videolinkit tiedostoon\",\n\t\"closeAppToTray\": \"Sulje sovellus ilmoitusalueelle\",\n\t\"useConfigFileCheckbox\": \"Käytä asetustiedostoa\",\n\t\"openApp\": \"Avaa sovellus\",\n\t\"pasteVideoLink\": \"Liitä video linkki\",\n\t\"quit\": \"Lopeta\",\n\t\"errorDetails\": \"Virheen tiedot\",\n\t\"clickToCopy\": \"Klikkaa kopioidaksesi\",\n\t\"copiedText\": \"Teksti kopioitu\",\n\t\"qualityNormal\": \"Normaali\",\n\t\"qualityGood\": \"Hyvä\",\n\t\"qualityBad\": \"Huono\",\n\t\"qualityWorst\": \"Huonoin\",\n\t\"selectQuality\": \"Valitse Laatu\",\n\t\"disableAutoUpdates\": \"Poista automaattiset päivitykset käytöstä\",\n\t\"qualityUltraLow\": \"erittäin matala\",\n\t\"closeAppOnFinish\": \"Sulje sovellus latauksen valmistuttua\",\n\t\"auto\": \"Automaattinen\",\n\t\"theme\": \"Teema\",\n\t\"themeLight\": \"Valoisa\",\n\t\"themeDark\": \"Tumma\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matriisi\",\n\t\"themeSolarizedDark\": \"Solarized, tumma\",\n\t\"preferredVideoCodec\": \"Ensisijainen videon koodekki\",\n\t\"showMoreFormatOptions\": \"Näytä lisää muotoiluvaihtoehtoja\",\n\t\"flatsealPermissionWarning\": \"Sinun on annettava sovellukselle lupa käyttää kotihakemistoa tämän käyttämiseksi. Voit tehdä sen Flatsealilla ottamalla käyttöön oikeudet tekstillä 'filesystem=home'\",\n\t\"noAudio\": \"Ei Ääntä\",\n\t\"proxy\": \"Välityspalvelin\",\n\t\"clearDownloads\": \"Tyhjennä Lataukset\",\n\t\"compressor\": \"Pakkaaja\",\n\t\"dragAndDropFiles\": \"Vedä ja pudota tiedosto(t)\",\n\t\"chooseFiles\": \"Valitse tiedosto(t)\",\n\t\"noFilesSelected\": \"Ei tiedostoja valittuna\",\n\t\"videoFormat\": \"Videon muoto\",\n\t\"videoEncoder\": \"Videon kooderi\",\n\t\"compressionSpeed\": \"Pakkausnopeus\",\n\t\"videoQuality\": \"Videon laatu\",\n\t\"audioFormat\": \"Äänen muoto\",\n\t\"outputSuffix\": \"Ulostulon pääte\",\n\t\"outputInSameFolder\": \"Ulostulo samaan kansioon\",\n\t\"selectCustomFolder\": \"Valitse mukautettu kansio\",\n\t\"startCompression\": \"Aloita pakkaus\",\n\t\"cancel\": \"Peruuta\",\n\t\"errorClickForDetails\": \"Virhe! Napsauta nähdäksesi yksityiskohdat\",\n\t\"homebrewYtDlpWarning\": \"Sinun on ladattava yt-dlp Homebrew'n kautta ensin\",\n\t\"openHomebrew\": \"Avaa Homebrew\",\n\t\"downloadHistory\": \"Lataushistoria\",\n\t\"close\": \"Sulje\",\n\t\"searchByTitleOrUrl\": \"Hae nimikkeen tai URL:n perusteella...\",\n\t\"allFormats\": \"Kaikki muodot\",\n\t\"exportAsJson\": \"Vie JSON-muodossa\",\n\t\"exportAsCsv\": \"Vie CSV-muodossa\",\n\t\"clearAllHistory\": \"Tyhjennä koko historia\",\n\t\"noDownloadsYet\": \"Ei latauksia vielä\",\n\t\"downloadHistoryPlaceholder\": \"Lataushistoriasi näkyy tässä\",\n\t\"format\": \"Muoto\",\n\t\"size\": \"Koko\",\n\t\"date\": \"Päivämäärä\",\n\t\"duration\": \"Kesto\",\n\t\"copyUrl\": \"Kopioi URL\",\n\t\"open\": \"Avaa\",\n\t\"delete\": \"Poista\",\n\t\"totalDownloads\": \"Latauksia yhteensä\",\n\t\"totalSize\": \"Koko yhteensä\",\n\t\"mostCommonFormat\": \"Yleisin muoto\",\n\t\"urlCopiedToClipboard\": \"URL kopioitu leikepöydälle!\",\n\t\"confirmDeleteHistoryItem\": \"Oletko varma, että haluat poistaa tämän kohteen historiasta?\",\n\t\"confirmClearAllHistory\": \"Oletko varma, että haluat tyhjentää koko lataushistorian? Tätä ei voi perua!\",\n\t\"fileDoesNotExist\": \"Tiedostoa ei ole enää olemassa\",\n\t\"updatingYtdlp\": \"Päivitetään yt-dlp:tä\",\n\t\"updatedYtdlp\": \"yt-dlp on päivitetty\",\n\t\"ytDlpUpdateRequired\": \"Jos yt-dlp on päivittymässä, odota päivityksen valmistumista. Jos olet asentanut yt-dlp:n itse, ole hyvä ja päivitä se.\",\n\t\"failedToDeleteHistoryItem\": \"Historiaelementin poistaminen epäonnistui\",\n\t\"customArgsTxt\": \"Aseta mukautetut yt-dlp-asetukset.\",\n\t\"learnMore\": \"Lue lisää\",\n\t\"updateError\": \"Päivitysprosessin aikana tapahtui virhe\",\n\t\"unableToAccessDir\": \"Ohjelma ei pääse käsiksi kyseiseen kansioon\",\n\t\"downloadingUpdate\": \"Ladataan päivitystä\"\n}\n"
  },
  {
    "path": "translations/fr-FR.json",
    "content": "{\n\t\"preferences\": \"Préférences\",\n\t\"about\": \"À propos\",\n\t\"downloadLocation\": \"Emplacement des téléchargements\",\n\t\"currentDownloadLocation\": \"Emplacement de téléchargement actuel - \",\n\t\"enableTransparentDarkMode\": \"Activer le mode sombre transparent (seulement sur Linux, nécessite un redémarrage)\",\n\t\"downloadingNecessaryFilesWait\": \"Veuillez patienter, les fichiers nécessaires sont en cours de téléchargement\",\n\t\"video\": \"Vidéo\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Titre \",\n\t\"selectFormat\": \"Format \",\n\t\"download\": \"Téléchargement\",\n\t\"selectDownloadLocation\": \"Choisir l'emplacement de téléchargement\",\n\t\"moreOptions\": \"Plus d'options\",\n\t\"start\": \"Début\",\n\t\"selectLanguageRelaunch\": \"Choix de la langue (nécessite un redémarrage)\",\n\t\"downloadTimeRange\": \"Télécharger un extrait\",\n\t\"end\": \"Fin\",\n\t\"timeRangeStartEmptyHint\": \"Si laissé vide, commencera depuis le début\",\n\t\"timeRangeEndEmptyHint\": \"Si laissé vide, terminera à la fin\",\n\t\"homepage\": \"Page d'accueil\",\n\t\"aboutAppDescription\": \"Ce logiciel est libre et open-source, construit avec Node.js et Electron. yt-dlp est utilisé pour le téléchargement\",\n\t\"sourceCodeAvailable\": \"Le code source est disponible \",\n\t\"here\": \"ici\",\n\t\"processing\": \"En cours\",\n\t\"errorNetworkOrUrl\": \"Une erreur est survenue. Vérifiez votre connexion internet ainsi que l'adresse URL\",\n\t\"errorFailedFileDownload\": \"Impossible de télécharger les fichiers. Vérifiez votre connexion internet et réessayez\",\n\t\"tryAgain\": \"Réessayez\",\n\t\"unknownSize\": \"Taille inconnue\",\n\t\"megabyte\": \"Mo\",\n\t\"unknownQuality\": \"Qualité inconnue\",\n\t\"downloading\": \"Téléchargement...\",\n\t\"errorHoverForDetails\": \"Une erreur est survenue. Voir détails\",\n\t\"fileSavedSuccessfully\": \"Fichier enregistré avec succès\",\n\t\"fileSavedClickToOpen\": \"Fichier enregistré. Cliquez pour ouvrir\",\n\t\"preparing\": \"Préparation...\",\n\t\"progress\": \"Avancement\",\n\t\"speed\": \"Vitesse\",\n\t\"quality\": \"Qualité\",\n\t\"restartApp\": \"Redémarrer l'application\",\n\t\"subtitles\": \"Sous-titres\",\n\t\"downloadSubtitlesAvailable\": \"Télécharger les sous-titres si disponibles\",\n\t\"downloadSubtitlesAuto\": \"Télécharger les sous-titres automatiquement générés\",\n\t\"extractAudioFromVideo\": \"Extraire l'audio depuis la vidéo\",\n\t\"extract\": \"Extraire\",\n\t\"downloadingNecessaryFiles\": \"Téléchargement des fichiers\",\n\t\"qualityLow\": \"faible\",\n\t\"qualityMedium\": \"moyenne\",\n\t\"appDescription\": \"ytDownloader vous permet de télécharger des vidéos et audios depuis des centaines de sites comme Youtube, Facebook, Instagram, TikTok, Twitter et plus encore\",\n\t\"pasteText\": \"Cliquez pour coller le lien vidéo depuis le presse-papiers\",\n\t\"pastePlaylistLinkTooltip\": \"Cliquez pour coller le lien de la playlist depuis le presse-papiers\",\n\t\"link\": \"Lien:\",\n\t\"downloadingPlaylist\": \"Téléchargement de la playlist:\",\n\t\"downloadPlaylistButton\": \"Télécharger une playlist\",\n\t\"playlistDownloaded\": \"Playlist téléchargée\",\n\t\"cookiesWarning\": \"Cette option vous permet de télécharger du contenu restreint. Vous rencontrerez des erreurs s'il n'y a pas de cookies\",\n\t\"selectBrowserForCookies\": \"Choisir le navigateur dont utiliser les cookies\",\n\t\"none\": \"Aucun\",\n\t\"updateAvailableDownloadPrompt\": \"Une nouvelle version est disponible, souhaitez-vous la télécharger ?\",\n\t\"updateAvailablePrompt\": \"Une nouvelle version est disponible, souhaitez-vous mettre à jour ?\",\n\t\"update\": \"Mise à jour\",\n\t\"no\": \"Non\",\n\t\"installAndRestartPrompt\": \"Installer et redémarrer maintenant ?\",\n\t\"restart\": \"Redémarrer\",\n\t\"later\": \"Plus tard\",\n\t\"extractAudio\": \"Extraire l'audio\",\n\t\"selectVideoFormat\": \"Choisir le format vidéo \",\n\t\"selectAudioFormat\": \"Choisir le format audio \",\n\t\"maxActiveDownloads\": \"Nombre maximal de téléchargements simultanés\",\n\t\"preferredVideoQuality\": \"Qualité vidéo par défaut\",\n\t\"preferredAudioFormat\": \"Qualité audio par défaut\",\n\t\"best\": \"Meilleur\",\n\t\"fileSaved\": \"Fichier enregistré.\",\n\t\"openDownloadFolder\": \"Ouvrir dossier de téléchargements\",\n\t\"path\": \"Chemin :\",\n\t\"selectConfigFile\": \"Choisir un fichier de configuration\",\n\t\"useConfigFile\": \"Utiliser un fichier de configuration\",\n\t\"playlistFilenameFormat\": \"Format des noms de fichier pour les playlists\",\n\t\"playlistFolderNameFormat\": \"Format des noms de dossier pour les playlists\",\n\t\"resetToDefault\": \"Remettre la valeur par défaut\",\n\t\"playlistRange\": \"Partie de la playlist\",\n\t\"thumbnail\": \"Miniature\",\n\t\"linkAdded\": \"Lien ajouté\",\n\t\"downloadThumbnails\": \"Télécharger les miniatures\",\n\t\"saveVideoLinksToFile\": \"Sauvegarder les liens des vidéos dans un fichier\",\n\t\"closeAppToTray\": \"Fermer dans la barre d'état\",\n\t\"useConfigFileCheckbox\": \"Utiliser un fichier de configuration\",\n\t\"openApp\": \"Ouvrir l'application\",\n\t\"pasteVideoLink\": \"Coller le lien de la vidéo\",\n\t\"quit\": \"Quitter\",\n\t\"errorDetails\": \"Détails de l'erreur\",\n\t\"clickToCopy\": \"Cliquez pour copier\",\n\t\"copiedText\": \"Texte copié\",\n\t\"qualityNormal\": \"Normale\",\n\t\"qualityGood\": \"Bon\",\n\t\"qualityBad\": \"Mauvais\",\n\t\"qualityWorst\": \"Pire\",\n\t\"selectQuality\": \"Sélectionner la qualité\",\n\t\"disableAutoUpdates\": \"Désactiver les mises à jour automatiques\",\n\t\"qualityUltraLow\": \"extrêmement bas\",\n\t\"closeAppOnFinish\": \"Fermer l'application à la fin du téléchargement\",\n\t\"auto\": \"Automatique\",\n\t\"theme\": \"Thème\",\n\t\"themeLight\": \"Clair\",\n\t\"themeDark\": \"Sombre\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrice\",\n\t\"themeSolarizedDark\": \"Solarisé sombre\",\n\t\"preferredVideoCodec\": \"Codec vidéo préféré\",\n\t\"showMoreFormatOptions\": \"Afficher plus d'options de format\",\n\t\"flatsealPermissionWarning\": \"Vous devez donner à l'application la permission d'accéder au répertoire personnel pour utiliser ceci. Vous pouvez le faire avec Flatseal en activant la permission avec le texte 'filesystem=home'\",\n\t\"noAudio\": \"Pas d'Audio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Effacer les téléchargements\",\n\t\"compressor\": \"Compresseur\",\n\t\"dragAndDropFiles\": \"Glisser-déposer le(s) fichier(s)\",\n\t\"chooseFiles\": \"Choisir le(s) fichier(s)\",\n\t\"noFilesSelected\": \"Aucun fichier sélectionné\",\n\t\"videoFormat\": \"Format vidéo\",\n\t\"videoEncoder\": \"Encodeur vidéo\",\n\t\"compressionSpeed\": \"Vitesse de compression\",\n\t\"videoQuality\": \"Qualité vidéo\",\n\t\"audioFormat\": \"Format audio\",\n\t\"outputSuffix\": \"Suffixe de sortie\",\n\t\"outputInSameFolder\": \"Sortie dans le même dossier\",\n\t\"selectCustomFolder\": \"Sélectionner un dossier personnalisé\",\n\t\"startCompression\": \"Démarrer la compression\",\n\t\"cancel\": \"Annuler\",\n\t\"errorClickForDetails\": \"Erreur ! Cliquez pour les détails\",\n\t\"homebrewYtDlpWarning\": \"Vous devez d'abord télécharger yt-dlp via Homebrew\",\n\t\"openHomebrew\": \"Ouvrir Homebrew\",\n\t\"downloadHistory\": \"Historique des téléchargements\",\n\t\"close\": \"Fermer\",\n\t\"searchByTitleOrUrl\": \"Rechercher par titre ou URL...\",\n\t\"allFormats\": \"Tous les formats\",\n\t\"exportAsJson\": \"Exporter en JSON\",\n\t\"exportAsCsv\": \"Exporter en CSV\",\n\t\"clearAllHistory\": \"Effacer tout l'historique\",\n\t\"noDownloadsYet\": \"Aucun téléchargement pour l'instant\",\n\t\"downloadHistoryPlaceholder\": \"Votre historique de téléchargement apparaîtra ici\",\n\t\"format\": \"Format\",\n\t\"size\": \"Taille\",\n\t\"date\": \"Date\",\n\t\"duration\": \"Durée\",\n\t\"copyUrl\": \"Copier l'URL\",\n\t\"open\": \"Ouvrir\",\n\t\"delete\": \"Supprimer\",\n\t\"totalDownloads\": \"Total des téléchargements\",\n\t\"totalSize\": \"Taille totale\",\n\t\"mostCommonFormat\": \"Format le plus courant\",\n\t\"urlCopiedToClipboard\": \"URL copiée dans le presse-papiers !\",\n\t\"confirmDeleteHistoryItem\": \"Êtes-vous sûr de vouloir supprimer cet élément de l'historique ?\",\n\t\"confirmClearAllHistory\": \"Êtes-vous sûr de vouloir effacer tout l'historique de téléchargement ? Cette action est irréversible !\",\n\t\"fileDoesNotExist\": \"Le fichier n'existe plus\",\n\t\"updatingYtdlp\": \"Mise à jour de yt-dlp\",\n\t\"updatedYtdlp\": \"yt-dlp mis à jour\",\n\t\"ytDlpUpdateRequired\": \"Si yt-dlp est en cours de mise à jour, attendez que la mise à jour se termine. Si vous avez installé yt-dlp vous-même, veuillez le mettre à jour.\",\n\t\"failedToDeleteHistoryItem\": \"Échec de la suppression de l'élément de l'historique\",\n\t\"customArgsTxt\": \"Définir des options yt-dlp personnalisées.\",\n\t\"learnMore\": \"En savoir plus\",\n\t\"updateError\": \"Une erreur s'est produite lors du processus de mise à jour\",\n\t\"unableToAccessDir\": \"Le programme ne peut pas accéder à ce dossier\",\n\t\"downloadingUpdate\": \"Chargement des données\"\n}\n"
  },
  {
    "path": "translations/hi-IN.json",
    "content": "{\n\t\"preferences\": \"प्राथमिकताएं\",\n\t\"about\": \"के बारे में\",\n\t\"downloadLocation\": \"डाउनलोड स्थान\",\n\t\"currentDownloadLocation\": \"वर्तमान डाउनलोड स्थान - \",\n\t\"enableTransparentDarkMode\": \"पारदर्शी डार्क मोड सक्षम करें (केवल Linux, पुनः आरंभ करना होगा)\",\n\t\"downloadingNecessaryFilesWait\": \"कृपया प्रतीक्षा करें, आवश्यक फ़ाइलें डाउनलोड हो रही हैं\",\n\t\"video\": \"वीडियो\",\n\t\"audio\": \"ऑडियो\",\n\t\"title\": \"शीर्षक \",\n\t\"selectFormat\": \"स्वरूप चुनें \",\n\t\"download\": \"डाउनलोड करें\",\n\t\"selectDownloadLocation\": \"डाउनलोड स्थान चुनें\",\n\t\"moreOptions\": \"अधिक विकल्प\",\n\t\"start\": \"शुरू\",\n\t\"selectLanguageRelaunch\": \"भाषा चुनें (पुनः आरंभ करना होगा)\",\n\t\"downloadTimeRange\": \"एक विशेष समय-सीमा डाउनलोड करें\",\n\t\"end\": \"समाप्त\",\n\t\"timeRangeStartEmptyHint\": \"यदि खाली रखा जाता है, तो यह शुरुआत से शुरू होगा\",\n\t\"timeRangeEndEmptyHint\": \"यदि खाली रखा जाता है, तो यह अंत तक डाउनलोड होगा\",\n\t\"homepage\": \"मुखपृष्ठ\",\n\t\"aboutAppDescription\": \"यह एक मुफ़्त और ओपन सोर्स ऐप है जो Node.js और Electron पर बनाया गया है। डाउनलोड के लिए yt-dlp का उपयोग किया गया है\",\n\t\"sourceCodeAvailable\": \"स्रोत कोड उपलब्ध है \",\n\t\"here\": \"यहाँ\",\n\t\"processing\": \"प्रसंस्करण हो रहा है\",\n\t\"errorNetworkOrUrl\": \"कुछ त्रुटि हुई है। अपना नेटवर्क जांचें और सही URL का उपयोग करें\",\n\t\"errorFailedFileDownload\": \"आवश्यक फ़ाइलें डाउनलोड करने में विफल। कृपया अपना नेटवर्क जांचें और पुनः प्रयास करें\",\n\t\"tryAgain\": \"पुनः प्रयास करें\",\n\t\"unknownSize\": \"अज्ञात आकार\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"अज्ञात गुणवत्ता\",\n\t\"downloading\": \"डाउनलोड हो रहा है...\",\n\t\"errorHoverForDetails\": \"कुछ त्रुटि हुई है। विवरण देखने के लिए होवर करें\",\n\t\"fileSavedSuccessfully\": \"फ़ाइल सफलतापूर्वक सहेजी गई\",\n\t\"fileSavedClickToOpen\": \"फ़ाइल सहेजी गई। खोलने के लिए क्लिक करें\",\n\t\"preparing\": \"तैयारी हो रही है...\",\n\t\"progress\": \"प्रगति\",\n\t\"speed\": \"गति\",\n\t\"quality\": \"गुणवत्ता\",\n\t\"restartApp\": \"ऐप पुनः आरंभ करें\",\n\t\"subtitles\": \"उपशीर्षक\",\n\t\"downloadSubtitlesAvailable\": \"उपलब्ध होने पर उपशीर्षक डाउनलोड करें\",\n\t\"downloadSubtitlesAuto\": \"स्वचालित रूप से उत्पन्न उपशीर्षक डाउनलोड करें\",\n\t\"extractAudioFromVideo\": \"वीडियो से ऑडियो निकालें\",\n\t\"extract\": \"निकालें\",\n\t\"downloadingNecessaryFiles\": \"आवश्यक फ़ाइलें डाउनलोड हो रही हैं\",\n\t\"qualityLow\": \"कम\",\n\t\"qualityMedium\": \"मध्यम\",\n\t\"appDescription\": \"ytDownloader आपको YouTube, Facebook, Instagram, Tiktok, Twitter और कई अन्य सैकड़ों साइटों से वीडियो और ऑडियो डाउनलोड करने देता है\",\n\t\"pasteText\": \"क्लिपबोर्ड से वीडियो लिंक पेस्ट करने के लिए क्लिक करें\",\n\t\"pastePlaylistLinkTooltip\": \"क्लिपबोर्ड से प्लेलिस्ट लिंक पेस्ट करने के लिए क्लिक करें\",\n\t\"link\": \"लिंक:\",\n\t\"downloadingPlaylist\": \"प्लेलिस्ट डाउनलोड हो रही है:\",\n\t\"downloadPlaylistButton\": \"प्लेलिस्ट डाउनलोड करें\",\n\t\"playlistDownloaded\": \"प्लेलिस्ट डाउनलोड हो गई\",\n\t\"cookiesWarning\": \"यह विकल्प आपको प्रतिबंधित सामग्री डाउनलोड करने देता है। यदि कुकीज़ मौजूद नहीं हैं तो आपको त्रुटियां मिलेंगी\",\n\t\"selectBrowserForCookies\": \"कुकीज़ का उपयोग करने के लिए ब्राउज़र चुनें\",\n\t\"none\": \"कोई नहीं\",\n\t\"updateAvailableDownloadPrompt\": \"एक नया संस्करण उपलब्ध है, क्या आप इसे डाउनलोड करना चाहते हैं?\",\n\t\"updateAvailablePrompt\": \"एक नया संस्करण उपलब्ध है, क्या आप अपडेट करना चाहते हैं?\",\n\t\"update\": \"अपडेट करें\",\n\t\"no\": \"नहीं\",\n\t\"installAndRestartPrompt\": \"अभी इंस्टॉल करें और पुनः आरंभ करें?\",\n\t\"restart\": \"पुनः आरंभ करें\",\n\t\"later\": \"बाद में\",\n\t\"extractAudio\": \"ऑडियो निकालें\",\n\t\"selectVideoFormat\": \"वीडियो स्वरूप चुनें \",\n\t\"selectAudioFormat\": \"ऑडियो स्वरूप चुनें \",\n\t\"maxActiveDownloads\": \"सक्रिय डाउनलोड की अधिकतम संख्या\",\n\t\"preferredVideoQuality\": \"पसंदीदा वीडियो गुणवत्ता\",\n\t\"preferredAudioFormat\": \"पसंदीदा ऑडियो स्वरूप\",\n\t\"best\": \"सर्वोत्तम\",\n\t\"fileSaved\": \"फ़ाइल सहेजी गई।\",\n\t\"openDownloadFolder\": \"डाउनलोड फ़ोल्डर खोलें\",\n\t\"path\": \"पथ:\",\n\t\"selectConfigFile\": \"कॉन्फ़िगरेशन फ़ाइल चुनें\",\n\t\"useConfigFile\": \"कॉन्फ़िगरेशन फ़ाइल का उपयोग करें\",\n\t\"playlistFilenameFormat\": \"प्लेलिस्ट के लिए फ़ाइल नाम स्वरूप\",\n\t\"playlistFolderNameFormat\": \"प्लेलिस्ट के लिए फ़ोल्डर नाम स्वरूप\",\n\t\"resetToDefault\": \"डिफ़ॉल्ट पर रीसेट करें\",\n\t\"playlistRange\": \"प्लेलिस्ट रेंज\",\n\t\"thumbnail\": \"थंबनेल\",\n\t\"linkAdded\": \"लिंक जोड़ा गया\",\n\t\"downloadThumbnails\": \"थंबनेल डाउनलोड करें\",\n\t\"saveVideoLinksToFile\": \"वीडियो लिंक को एक फ़ाइल में सहेजें\",\n\t\"closeAppToTray\": \"सिस्टम ट्रे में ऐप बंद करें\",\n\t\"useConfigFileCheckbox\": \"कॉन्फ़िगरेशन फ़ाइल का उपयोग करें\",\n\t\"openApp\": \"ऐप खोलें\",\n\t\"pasteVideoLink\": \"वीडियो लिंक पेस्ट करें\",\n\t\"quit\": \"छोड़ें\",\n\t\"errorDetails\": \"त्रुटि विवरण\",\n\t\"clickToCopy\": \"कॉपी करने के लिए क्लिक करें\",\n\t\"copiedText\": \"पाठ कॉपी किया गया\",\n\t\"qualityNormal\": \"सामान्य\",\n\t\"qualityGood\": \"अच्छा\",\n\t\"qualityBad\": \"बुरा\",\n\t\"qualityWorst\": \"सबसे खराब\",\n\t\"selectQuality\": \"गुणवत्ता चुनें\",\n\t\"disableAutoUpdates\": \"ऑटो अपडेट अक्षम करें\",\n\t\"qualityUltraLow\": \"अति निम्न\",\n\t\"closeAppOnFinish\": \"डाउनलोड समाप्त होने पर ऐप बंद करें\",\n\t\"auto\": \"ऑटो\",\n\t\"theme\": \"थीम\",\n\t\"themeLight\": \"हल्का\",\n\t\"themeDark\": \"गहरा\",\n\t\"themeFrappe\": \"फ्रैप्पे\",\n\t\"themeOneDark\": \"वन डार्क\",\n\t\"themeMatrix\": \"मैट्रिक्स\",\n\t\"themeSolarizedDark\": \"सोलराइज़्ड डार्क\",\n\t\"preferredVideoCodec\": \"पसंदीदा वीडियो कोडेक\",\n\t\"showMoreFormatOptions\": \"अधिक स्वरूप विकल्प दिखाएँ\",\n\t\"flatsealPermissionWarning\": \"इसका उपयोग करने के लिए आपको ऐप को होम डायरेक्टरी तक पहुंचने की अनुमति देनी होगी। आप इसे Flatseal के साथ 'filesystem=home' टेक्स्ट के साथ अनुमति सक्षम करके कर सकते हैं\",\n\t\"noAudio\": \"कोई ऑडियो नहीं\",\n\t\"proxy\": \"प्रॉक्सी\",\n\t\"clearDownloads\": \"डाउनलोड साफ़ करें\",\n\t\"compressor\": \"कंप्रेसर\",\n\t\"dragAndDropFiles\": \"फ़ाइल (फ़ाइलें) खींचें और छोड़ें\",\n\t\"chooseFiles\": \"फ़ाइल (फ़ाइलें) चुनें\",\n\t\"noFilesSelected\": \"कोई फ़ाइल नहीं चुनी गई\",\n\t\"videoFormat\": \"वीडियो स्वरूप\",\n\t\"videoEncoder\": \"वीडियो एन्कोडर\",\n\t\"compressionSpeed\": \"संपीड़न गति\",\n\t\"videoQuality\": \"वीडियो गुणवत्ता\",\n\t\"audioFormat\": \"ऑडियो स्वरूप\",\n\t\"outputSuffix\": \"आउटपुट प्रत्यय\",\n\t\"outputInSameFolder\": \"एक ही फ़ोल्डर में आउटपुट\",\n\t\"selectCustomFolder\": \"कस्टम फ़ोल्डर चुनें\",\n\t\"startCompression\": \"संपीड़न शुरू करें\",\n\t\"cancel\": \"रद्द करें\",\n\t\"errorClickForDetails\": \"त्रुटि! विवरण के लिए क्लिक करें\",\n\t\"homebrewYtDlpWarning\": \"आपको पहले Homebrew से yt-dlp डाउनलोड करना होगा\",\n\t\"openHomebrew\": \"होमब्रू खोलें\",\n\t\"downloadHistory\": \"डाउनलोड इतिहास\",\n\t\"close\": \"बंद करें\",\n\t\"searchByTitleOrUrl\": \"शीर्षक या URL द्वारा खोजें...\",\n\t\"allFormats\": \"सभी स्वरूप\",\n\t\"exportAsJson\": \"JSON के रूप में निर्यात करें\",\n\t\"exportAsCsv\": \"CSV के रूप में निर्यात करें\",\n\t\"clearAllHistory\": \"सभी इतिहास साफ़ करें\",\n\t\"noDownloadsYet\": \"अभी तक कोई डाउनलोड नहीं\",\n\t\"downloadHistoryPlaceholder\": \"आपका डाउनलोड इतिहास यहाँ दिखाई देगा\",\n\t\"format\": \"स्वरूप\",\n\t\"size\": \"आकार\",\n\t\"date\": \"तारीख\",\n\t\"duration\": \"अवधि\",\n\t\"copyUrl\": \"URL कॉपी करें\",\n\t\"open\": \"खोलें\",\n\t\"delete\": \"हटाएँ\",\n\t\"totalDownloads\": \"कुल डाउनलोड\",\n\t\"totalSize\": \"कुल आकार\",\n\t\"mostCommonFormat\": \"सबसे सामान्य स्वरूप\",\n\t\"urlCopiedToClipboard\": \"URL क्लिपबोर्ड पर कॉपी हो गया!\",\n\t\"confirmDeleteHistoryItem\": \"क्या आप वाकई इस आइटम को इतिहास से हटाना चाहते हैं?\",\n\t\"confirmClearAllHistory\": \"क्या आप वाकई सभी डाउनलोड इतिहास साफ़ करना चाहते हैं? यह पूर्ववत नहीं किया जा सकता!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"और जानें\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/hu-HU.json",
    "content": "{\n\t\"preferences\": \"Beállítások\",\n\t\"about\": \"Névjegy\",\n\t\"downloadLocation\": \"Letöltés helye\",\n\t\"currentDownloadLocation\": \"Jelenlegi letöltés helye - \",\n\t\"enableTransparentDarkMode\": \"Áttetszó sötét mód bekapcsolása (csak Linuxon, újraindítás szükséges)\",\n\t\"downloadingNecessaryFilesWait\": \"Kérem várjon, a szükséges fájlok letöltés alatt\",\n\t\"video\": \"Videó\",\n\t\"audio\": \"Hang\",\n\t\"title\": \"Cím \",\n\t\"selectFormat\": \"Válasszon formátumot \",\n\t\"download\": \"Letöltés\",\n\t\"selectDownloadLocation\": \"Letöltési hely kiválasztása\",\n\t\"moreOptions\": \"További beállítások\",\n\t\"start\": \"Indít\",\n\t\"selectLanguageRelaunch\": \"Nyelv kiválasztása (újraindítás szükséges)\",\n\t\"downloadTimeRange\": \"Idősáv letöltése\",\n\t\"end\": \"Vége\",\n\t\"timeRangeStartEmptyHint\": \"Elejéről kezdi, ha üresen hagyja\",\n\t\"timeRangeEndEmptyHint\": \"Végéig letölti, ha üresen hagyja\",\n\t\"homepage\": \"Kezdőlap\",\n\t\"aboutAppDescription\": \"Ez egy ingyenes és nyílt forráskódú alkalmazás, amely a Node.js-re és az Electronra épül. yt-dlp-t letöltéshez használható\",\n\t\"sourceCodeAvailable\": \"Forráskód elérhető \",\n\t\"here\": \"itt\",\n\t\"processing\": \"Feldolgozás alatt\",\n\t\"errorNetworkOrUrl\": \"Valami hiba történt. Ellenőrizze a hálózatot, és használja a megfelelő URL-t\",\n\t\"errorFailedFileDownload\": \"Szükséges fájlok letöltése nem sikerült. Kérjük, ellenőrizze a hálózatot, és próbálja újra\",\n\t\"tryAgain\": \"Próbálja meg újra\",\n\t\"unknownSize\": \"Ismeretlen méret\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Ismeretlen minőség\",\n\t\"downloading\": \"Letöltés...\",\n\t\"errorHoverForDetails\": \"Hiba történt. Vigye az egérmutatót a hiba fölé a részletekért\",\n\t\"fileSavedSuccessfully\": \"Fájl sikeresen elmentve\",\n\t\"fileSavedClickToOpen\": \"Fájl elmentve. Kattintson a megnyitáshoz\",\n\t\"preparing\": \"Előkészítés...\",\n\t\"progress\": \"Készültség\",\n\t\"speed\": \"Sebesség\",\n\t\"quality\": \"Minőség\",\n\t\"restartApp\": \"Alkalmazás újraindítása\",\n\t\"subtitles\": \"Feliratok\",\n\t\"downloadSubtitlesAvailable\": \"Felirat letöltése, ha elérhető\",\n\t\"downloadSubtitlesAuto\": \"Automatikusan generált feliratok letöltése\",\n\t\"extractAudioFromVideo\": \"Hang kinyerése videóból\",\n\t\"extract\": \"Kinyerés\",\n\t\"downloadingNecessaryFiles\": \"Szükséges fájlok letöltése\",\n\t\"qualityLow\": \"alacsony\",\n\t\"qualityMedium\": \"közepes\",\n\t\"appDescription\": \"a ytDownloader segítségével videókat és hanganyagokat tölthet le több száz webhelyről, például Youtube, Facebook, Instagram, Tiktok, Twitter és így tovább\",\n\t\"pasteText\": \"Kattintson ide a videólink vágólapról történő beillesztéséhez\",\n\t\"pastePlaylistLinkTooltip\": \"Kattintson ide a lejátszási lista linkjének vágólapról történő beillesztéséhez\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"Lejátszási lista letöltése:\",\n\t\"downloadPlaylistButton\": \"Lejátszási lista letöltése\",\n\t\"playlistDownloaded\": \"Lejátszási lista letöltve\",\n\t\"cookiesWarning\": \"Ezzel az opcióval korlátozott tartalom is letölthető. Hibákat fog kapni sütik hiányában\",\n\t\"selectBrowserForCookies\": \"Válaszzon böngészőt, ahonnan a sütiket használjuk\",\n\t\"none\": \"Egyik sem\",\n\t\"updateAvailableDownloadPrompt\": \"Új verzió érhető el, szeretné letölteni?\",\n\t\"updateAvailablePrompt\": \"Új verzió érhető el, szeretné frissíteni?\",\n\t\"update\": \"Frissítés\",\n\t\"no\": \"Nem\",\n\t\"installAndRestartPrompt\": \"Telepíti és újraindítja most?\",\n\t\"restart\": \"Újraindítás\",\n\t\"later\": \"Később\",\n\t\"extractAudio\": \"Hang kinyerése\",\n\t\"selectVideoFormat\": \"Válasszon videó formátumot \",\n\t\"selectAudioFormat\": \"Válasszon hang formátumot \",\n\t\"maxActiveDownloads\": \"Aktív letöltések maximum száma\",\n\t\"preferredVideoQuality\": \"Előnyben részesített videó formátum\",\n\t\"preferredAudioFormat\": \"Előnyben részesített hang formátum\",\n\t\"best\": \"Legjobb\",\n\t\"fileSaved\": \"Fájl elmentve\",\n\t\"openDownloadFolder\": \"Letöltési mappa megnyitása\",\n\t\"path\": \"Elérési út:\",\n\t\"selectConfigFile\": \"Konfigurációs fájl kiválasztása\",\n\t\"useConfigFile\": \"Konfigurációs fájl alkalmazása\",\n\t\"playlistFilenameFormat\": \"Fájlnév formátum lejátszási listákhoz\",\n\t\"playlistFolderNameFormat\": \"Mappanév formátum lejátszási listákhoz\",\n\t\"resetToDefault\": \"Visszaállítás alapértelmezettre\",\n\t\"playlistRange\": \"Lejátszási lista hossza\",\n\t\"thumbnail\": \"Előnézet\",\n\t\"linkAdded\": \"Link hozzáadva\",\n\t\"downloadThumbnails\": \"Előnézet letöltése\",\n\t\"saveVideoLinksToFile\": \"Videó linkek mentése fájlba\",\n\t\"closeAppToTray\": \"Bezárás az értesítési területre\",\n\t\"useConfigFileCheckbox\": \"Konfigurációs fájl használata\",\n\t\"openApp\": \"Alkalmazás megnyitása\",\n\t\"pasteVideoLink\": \"Videó link beillesztése\",\n\t\"quit\": \"Kilépés\",\n\t\"errorDetails\": \"Hiba részletei\",\n\t\"clickToCopy\": \"Kattintson a másoláshoz\",\n\t\"copiedText\": \"Kimásolt szöveg\",\n\t\"qualityNormal\": \"Átlagos\",\n\t\"qualityGood\": \"Jó\",\n\t\"qualityBad\": \"Rossz\",\n\t\"qualityWorst\": \"Legrosszabb\",\n\t\"selectQuality\": \"Minőség kiválasztása\",\n\t\"disableAutoUpdates\": \"Automatikus frissítések kikapcsolása\",\n\t\"qualityUltraLow\": \"legeslegrosszabb\",\n\t\"closeAppOnFinish\": \"Alkalmazás bezárása amint a letöltés befejeződött\",\n\t\"auto\": \"Automatikus\",\n\t\"theme\": \"Téma\",\n\t\"themeLight\": \"Világos\",\n\t\"themeDark\": \"Sötét\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"Sötét\",\n\t\"themeMatrix\": \"Mátrix\",\n\t\"themeSolarizedDark\": \"Szolarizált sötét\",\n\t\"preferredVideoCodec\": \"Előnyben részesített videokodek\",\n\t\"showMoreFormatOptions\": \"További formátumbeállítások megjelenítése\",\n\t\"flatsealPermissionWarning\": \"Ennek használatához engedélyt kell adnia az alkalmazásnak a home könyvtár eléréséhez. Meg tudod csinálni a Flatseal segítségével, Ha engedélyezed az engedélyt a 'filesystem=home'szöveggel\",\n\t\"noAudio\": \"Nincs hang\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Letöltések törlése\",\n\t\"compressor\": \"Tömörítő\",\n\t\"dragAndDropFiles\": \"Húzzon át fájl(oka)t\",\n\t\"chooseFiles\": \"Fájl(ok) kiválasztása\",\n\t\"noFilesSelected\": \"Nincs kiválasztott fájl\",\n\t\"videoFormat\": \"Videó formátum\",\n\t\"videoEncoder\": \"Videó kódoló\",\n\t\"compressionSpeed\": \"Tömörítési sebesség\",\n\t\"videoQuality\": \"Videó minőség\",\n\t\"audioFormat\": \"Hang formátum\",\n\t\"outputSuffix\": \"Kimeneti utótag\",\n\t\"outputInSameFolder\": \"Kimenet ugyanabba a mappába\",\n\t\"selectCustomFolder\": \"Egyedi mappa kiválasztása\",\n\t\"startCompression\": \"Tömörítés indítása\",\n\t\"cancel\": \"Mégse\",\n\t\"errorClickForDetails\": \"Hiba! Kattintson a részletekért\",\n\t\"homebrewYtDlpWarning\": \"Először le kell töltenie a yt-dlp-t a Homebrew-ból\",\n\t\"openHomebrew\": \"Homebrew megnyitása\",\n\t\"downloadHistory\": \"Letöltési előzmények\",\n\t\"close\": \"Bezárás\",\n\t\"searchByTitleOrUrl\": \"Keresés cím vagy URL alapján...\",\n\t\"allFormats\": \"Minden formátum\",\n\t\"exportAsJson\": \"Exportálás JSON-ként\",\n\t\"exportAsCsv\": \"Exportálás CSV-ként\",\n\t\"clearAllHistory\": \"Összes előzmény törlése\",\n\t\"noDownloadsYet\": \"Még nincsenek letöltések\",\n\t\"downloadHistoryPlaceholder\": \"A letöltési előzmények itt fognak megjelenni\",\n\t\"format\": \"Formátum\",\n\t\"size\": \"Méret\",\n\t\"date\": \"Dátum\",\n\t\"duration\": \"Időtartam\",\n\t\"copyUrl\": \"URL másolása\",\n\t\"open\": \"Megnyitás\",\n\t\"delete\": \"Törlés\",\n\t\"totalDownloads\": \"Összes letöltés\",\n\t\"totalSize\": \"Teljes méret\",\n\t\"mostCommonFormat\": \"Leggyakoribb formátum\",\n\t\"urlCopiedToClipboard\": \"URL vágólapra másolva!\",\n\t\"confirmDeleteHistoryItem\": \"Biztosan törölni szeretné ezt az elemet az előzményekből?\",\n\t\"confirmClearAllHistory\": \"Biztosan törölni szeretné az összes letöltési előzményt? Ezt nem lehet visszavonni!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"További információ\",\n\t\"updateError\": \"Hiba történt a frissítési folyamat során\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Frissítés letöltése\"\n}\n"
  },
  {
    "path": "translations/i18n-init.js",
    "content": "const I18n = require(\"../translations/i18n\");\nconst i18n = new I18n();\n\n(async () => {\n\tawait i18n.init();\n\tdocument.dispatchEvent(new Event(\"translations-loaded\"));\n})();\n\nwindow.i18n = i18n;\n"
  },
  {
    "path": "translations/i18n.js",
    "content": "const {ipcRenderer} = require(\"electron\");\n\nfunction normalizeLocale(locale) {\n\tif (!locale) return \"en\";\n\tconst parts = locale.split(\"-\");\n\tconst lang = parts[0].toLowerCase();\n\tconst region = parts[1] ? parts[1].toUpperCase() : null;\n\n\tconst defaultRegions = {\n\t\tzh: \"CN\",\n\t\ten: \"US\",\n\t\tru: \"RU\",\n\t\tpt: \"BR\",\n\t\tfi: \"FI\",\n\t\tfr: \"FR\",\n\t\tes: \"ES\",\n\t\tde: \"DE\",\n\t\tit: \"IT\",\n\t\tja: \"JP\",\n\t\tar: \"SA\",\n\t};\n\n\tif (!region && defaultRegions[lang]) {\n\t\treturn `${lang}-${defaultRegions[lang]}`;\n\t}\n\n\treturn region ? `${lang}-${region}` : lang;\n}\n\nasync function getLocale() {\n\ttry {\n\t\tconst saved = localStorage.getItem(\"locale\");\n\t\tif (saved) return saved;\n\t} catch (e) {}\n\n\tlet locale = null;\n\ttry {\n\t\tlocale = await ipcRenderer.invoke(\"get-system-locale\");\n\t} catch (e) {\n\t\tconsole.log(e)\n\t}\n\n\tif (!locale && typeof navigator !== \"undefined\") {\n\t\tlocale =\n\t\t\tnavigator.language ||\n\t\t\t(navigator.languages && navigator.languages[0]);\n\t}\n\n\tconst normalized = normalizeLocale(locale || \"en\");\n\n\ttry {\n\t\tlocalStorage.setItem(\"locale\", normalized);\n\t} catch (e) {}\n\n\treturn normalized;\n}\n\nfunction I18n() {\n\tthis.loadedLanguage = {};\n\tthis.locale = \"en\";\n\n\tthis.init = async () => {\n\t\ttry {\n\t\t\tthis.locale = await getLocale();\n\t\t\tthis.loadedLanguage = await ipcRenderer.invoke(\n\t\t\t\t\"get-translation\",\n\t\t\t\tthis.locale\n\t\t\t);\n\t\t} catch (error) {\n\t\t\tconsole.error(\"Error loading translations:\", error);\n\t\t\tthis.loadedLanguage = {};\n\t\t}\n\t};\n\n\tthis.__ = function (phrase) {\n\t\treturn this.loadedLanguage[phrase] !== undefined\n\t\t\t? this.loadedLanguage[phrase]\n\t\t\t: phrase;\n\t};\n\n\tthis.translatePage = () => {\n\t\tdocument.querySelectorAll(\"[data-translate]\").forEach((element) => {\n\t\t\tconst key = element.getAttribute(\"data-translate\");\n\t\t\telement.textContent = this.__(key);\n\t\t});\n\n\t\tdocument\n\t\t\t.querySelectorAll(\"[data-translate-placeholder]\")\n\t\t\t.forEach((element) => {\n\t\t\t\tconst key = element.getAttribute(\"data-translate-placeholder\");\n\t\t\t\telement.placeholder = this.__(key);\n\t\t\t});\n\n\t\tdocument\n\t\t\t.querySelectorAll(\"[data-translate-title]\")\n\t\t\t.forEach((element) => {\n\t\t\t\tconst key = element.getAttribute(\"data-translate-title\");\n\t\t\t\telement.title = this.__(key);\n\t\t\t});\n\t};\n\n\tthis.setLocale = async function (newLocale) {\n\t\tconst normalized = normalizeLocale(newLocale);\n\t\tlocalStorage.setItem(\"locale\", normalized);\n\t\tthis.loadedLanguage = await ipcRenderer.invoke(\n\t\t\t\"get-translation\",\n\t\t\tnormalized\n\t\t);\n\t\tthis.locale = normalized;\n\n\t\tthis.translatePage();\n\t};\n}\n\nmodule.exports = I18n;\n"
  },
  {
    "path": "translations/it-IT.json",
    "content": "{\n\t\"preferences\": \"Preferenze\",\n\t\"about\": \"Informazioni\",\n\t\"downloadLocation\": \"Posizione di download\",\n\t\"currentDownloadLocation\": \"Posizione di download corrente - \",\n\t\"enableTransparentDarkMode\": \"Abilita la modalità scura trasparente (solo Linux, necessita di riavvio)\",\n\t\"downloadingNecessaryFilesWait\": \"Attendere, è in corso lo scaricamento dei file necessari\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Titolo \",\n\t\"selectFormat\": \"Selezione formato \",\n\t\"download\": \"Scarica\",\n\t\"selectDownloadLocation\": \"Seleziona posizione di download\",\n\t\"moreOptions\": \"Più opzioni\",\n\t\"start\": \"Inizia\",\n\t\"selectLanguageRelaunch\": \"Seleziona la lingua (richiede il riavvio)\",\n\t\"downloadTimeRange\": \"Scarica particolare intervallo di tempo\",\n\t\"end\": \"Fine\",\n\t\"timeRangeStartEmptyHint\": \"Se lasciato vuoto, ricomincerà dall'inizio\",\n\t\"timeRangeEndEmptyHint\": \"Se lasciato vuoto, verrà scaricato fino alla fine\",\n\t\"homepage\": \"Homepage\",\n\t\"aboutAppDescription\": \"È un'app gratuita e open source basata su Node.js ed Electron. yt-dlp è stato utilizzato per il download\",\n\t\"sourceCodeAvailable\": \"Il codice sorgente è disponibile \",\n\t\"here\": \"qui\",\n\t\"processing\": \"In elaborazione\",\n\t\"errorNetworkOrUrl\": \"Si è verificato un errore. Controlla la tua rete e usa l'URL corretto\",\n\t\"errorFailedFileDownload\": \"Impossibile scaricare i file necessari. Controlla la tua rete e riprova\",\n\t\"tryAgain\": \"Riprova\",\n\t\"unknownSize\": \"Dimensione sconosciuta\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Qualità sconosciuta\",\n\t\"downloading\": \"Scaricamento in corso...\",\n\t\"errorHoverForDetails\": \"Si è verificato un errore. Passa il mouse per vedere i dettagli\",\n\t\"fileSavedSuccessfully\": \"File salvato con successo\",\n\t\"fileSavedClickToOpen\": \"File salvato. Fare clic per aprire\",\n\t\"preparing\": \"Preparazione in corso...\",\n\t\"progress\": \"Avanzamento in corso\",\n\t\"speed\": \"Velocità\",\n\t\"quality\": \"Qualità\",\n\t\"restartApp\": \"Riavvia l'app\",\n\t\"subtitles\": \"Sottotitoli\",\n\t\"downloadSubtitlesAvailable\": \"Scarica i sottotitoli se disponibili\",\n\t\"downloadSubtitlesAuto\": \"Scarica i sottotitoli generati automaticamente\",\n\t\"extractAudioFromVideo\": \"Estrai l'audio dal video\",\n\t\"extract\": \"Estrai\",\n\t\"downloadingNecessaryFiles\": \"Scaricamento dei file necessari\",\n\t\"qualityLow\": \"bassa\",\n\t\"qualityMedium\": \"media\",\n\t\"appDescription\": \"ytDownloader ti consente di scaricare video e audio da centinaia di siti come Youtube, Facebook, Instagram, Tiktok, Twitter e così via\",\n\t\"pasteText\": \"Clicca per incollare il link del video dagli appunti\",\n\t\"pastePlaylistLinkTooltip\": \"Clicca per incollare il link della playlist dagli appunti\",\n\t\"link\": \"Collegamento:\",\n\t\"downloadingPlaylist\": \"Scaricamento playlist:\",\n\t\"downloadPlaylistButton\": \"Scarica playlist\",\n\t\"playlistDownloaded\": \"Playlist scaricata\",\n\t\"cookiesWarning\": \"Questa opzione consente di scaricare contenuti limitati. Si otterranno errori se i cookie non ci sono\",\n\t\"selectBrowserForCookies\": \"Seleziona il browser da cui utilizzare i cookie\",\n\t\"none\": \"Nessuna\",\n\t\"updateAvailableDownloadPrompt\": \"È disponibile una nuova versione, vuoi scaricarla?\",\n\t\"updateAvailablePrompt\": \"È disponibile una nuova versione, vuoi aggiornare?\",\n\t\"update\": \"Aggiorna\",\n\t\"no\": \"No\",\n\t\"installAndRestartPrompt\": \"Installare e riavviare ora?\",\n\t\"restart\": \"Riavvia\",\n\t\"later\": \"Dopo\",\n\t\"extractAudio\": \"Estrai Audio\",\n\t\"selectVideoFormat\": \"Seleziona Formato Video \",\n\t\"selectAudioFormat\": \"Seleziona Formato Audio \",\n\t\"maxActiveDownloads\": \"Numero massimo di download attivi\",\n\t\"preferredVideoQuality\": \"Qualità video preferita\",\n\t\"preferredAudioFormat\": \"Formato audio preferito\",\n\t\"best\": \"Migliore\",\n\t\"fileSaved\": \"File salvato.\",\n\t\"openDownloadFolder\": \"Apri cartella di download\",\n\t\"path\": \"Percorso:\",\n\t\"selectConfigFile\": \"File di configurazione\",\n\t\"useConfigFile\": \"Usa il file di configurazione\",\n\t\"playlistFilenameFormat\": \"Formato nome file per scalette\",\n\t\"playlistFolderNameFormat\": \"Formato nome cartella per le scalette\",\n\t\"resetToDefault\": \"Ripristina predefinito\",\n\t\"playlistRange\": \"Intervallo di playlist\",\n\t\"thumbnail\": \"Miniatura\",\n\t\"linkAdded\": \"Link aggiunto\",\n\t\"downloadThumbnails\": \"Scarica miniature\",\n\t\"saveVideoLinksToFile\": \"Salva link video su un file\",\n\t\"closeAppToTray\": \"Chiudi app nel vassoio di sistema\",\n\t\"useConfigFileCheckbox\": \"Usa file di configurazione\",\n\t\"openApp\": \"Apri app\",\n\t\"pasteVideoLink\": \"Incolla link video\",\n\t\"quit\": \"Esci\",\n\t\"errorDetails\": \"Dettagli errore\",\n\t\"clickToCopy\": \"Clicca per copiare\",\n\t\"copiedText\": \"Testo copiato\",\n\t\"qualityNormal\": \"Normale\",\n\t\"qualityGood\": \"Buona\",\n\t\"qualityBad\": \"Cattiva\",\n\t\"qualityWorst\": \"Bassa\",\n\t\"selectQuality\": \"Seleziona qualità\",\n\t\"disableAutoUpdates\": \"Disabilita aggiornamenti automatici\",\n\t\"qualityUltraLow\": \"ultra bassa\",\n\t\"closeAppOnFinish\": \"Chiudi app al termine del download\",\n\t\"auto\": \"Automatico\",\n\t\"theme\": \"Tema\",\n\t\"themeLight\": \"Chiaro\",\n\t\"themeDark\": \"Scuro\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"Uno Oscuro\",\n\t\"themeMatrix\": \"Matrice\",\n\t\"themeSolarizedDark\": \"Solarizzato scuro\",\n\t\"preferredVideoCodec\": \"Codifica video preferita\",\n\t\"showMoreFormatOptions\": \"Mostra più opzioni di formato\",\n\t\"flatsealPermissionWarning\": \"Devi dare all'app il permesso di accedere alla home directory per usarlo. Puoi farlo con Flatseal abilitando l'autorizzazione con il testo 'filesystem=home'\",\n\t\"noAudio\": \"Nessun Audio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Cancella Download\",\n\t\"compressor\": \"Compressore\",\n\t\"dragAndDropFiles\": \"Trascina e rilascia file\",\n\t\"chooseFiles\": \"Scegli File\",\n\t\"noFilesSelected\": \"Nessun file selezionato\",\n\t\"videoFormat\": \"Formato Video\",\n\t\"videoEncoder\": \"Codificatore Video\",\n\t\"compressionSpeed\": \"Velocità di Compressione\",\n\t\"videoQuality\": \"Qualità Video\",\n\t\"audioFormat\": \"Formato Audio\",\n\t\"outputSuffix\": \"Suffisso di Output\",\n\t\"outputInSameFolder\": \"Output nella stessa cartella\",\n\t\"selectCustomFolder\": \"Seleziona cartella personalizzata\",\n\t\"startCompression\": \"Avvia Compressione\",\n\t\"cancel\": \"Annulla\",\n\t\"errorClickForDetails\": \"Errore! Clicca per i dettagli\",\n\t\"homebrewYtDlpWarning\": \"Devi prima scaricare yt-dlp da Homebrew\",\n\t\"openHomebrew\": \"Apri Homebrew\",\n\t\"downloadHistory\": \"Cronologia Download\",\n\t\"close\": \"Chiudi\",\n\t\"searchByTitleOrUrl\": \"Cerca per titolo o URL...\",\n\t\"allFormats\": \"Tutti i Formati\",\n\t\"exportAsJson\": \"Esporta come JSON\",\n\t\"exportAsCsv\": \"Esporta come CSV\",\n\t\"clearAllHistory\": \"Cancella Tutta la Cronologia\",\n\t\"noDownloadsYet\": \"Ancora Nessun Download\",\n\t\"downloadHistoryPlaceholder\": \"La tua cronologia download apparirà qui\",\n\t\"format\": \"Formato\",\n\t\"size\": \"Dimensione\",\n\t\"date\": \"Data\",\n\t\"duration\": \"Durata\",\n\t\"copyUrl\": \"Copia URL\",\n\t\"open\": \"Apri\",\n\t\"delete\": \"Elimina\",\n\t\"totalDownloads\": \"Download Totali\",\n\t\"totalSize\": \"Dimensione Totale\",\n\t\"mostCommonFormat\": \"Formato più Comune\",\n\t\"urlCopiedToClipboard\": \"URL copiato negli appunti!\",\n\t\"confirmDeleteHistoryItem\": \"Sei sicuro di voler eliminare questo elemento dalla cronologia?\",\n\t\"confirmClearAllHistory\": \"Sei sicuro di voler cancellare tutta la cronologia dei download? Questa azione è irreversibile!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/ja-JP.json",
    "content": "{\n\t\"preferences\": \"環境設定\",\n\t\"about\": \"概要\",\n\t\"downloadLocation\": \"ダウンロード場所\",\n\t\"currentDownloadLocation\": \"現在のダウンロード場所 - \",\n\t\"enableTransparentDarkMode\": \"透明なダークモードを有効にする(Linuxのみ、再起動が必要)\",\n\t\"downloadingNecessaryFilesWait\": \"お待ちください、必要なファイルがダウンロードされています\",\n\t\"video\": \"ビデオ\",\n\t\"audio\": \"オーディオ\",\n\t\"title\": \"タイトル \",\n\t\"selectFormat\": \"フォーマットを選択 \",\n\t\"download\": \"ダウンロード\",\n\t\"selectDownloadLocation\": \"ダウンロード場所を選択\",\n\t\"moreOptions\": \"その他のオプション\",\n\t\"start\": \"開始\",\n\t\"selectLanguageRelaunch\": \"言語を選択(再起動が必要)\",\n\t\"downloadTimeRange\": \"特定の時間範囲をダウンロード\",\n\t\"end\": \"終了\",\n\t\"timeRangeStartEmptyHint\": \"空白の場合は、最初から始めます\",\n\t\"timeRangeEndEmptyHint\": \"空白の場合、最後までダウンロードされます\",\n\t\"homepage\": \"ホーム\",\n\t\"aboutAppDescription\": \"これは、Node.jsとElectronの上に構築されたフリーでオープンソースアプリです。yt-dlpはダウンロードに使用されています。\",\n\t\"sourceCodeAvailable\": \"ソースコードはここで公開されています \",\n\t\"here\": \"こちら\",\n\t\"processing\": \"処理中\",\n\t\"errorNetworkOrUrl\": \"いくつかのエラーが発生しました。ネットワークを確認し、正しいURLを使用してください。\",\n\t\"errorFailedFileDownload\": \"必要なファイルのダウンロードに失敗しました。ネットワークを確認し、もう一度試してください。\",\n\t\"tryAgain\": \"もう一度試してください\",\n\t\"unknownSize\": \"不明なサイズ\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"不明な品質\",\n\t\"downloading\": \"ダウンロード中…\",\n\t\"errorHoverForDetails\": \"いくつかのエラーが発生しました。詳細を確認してください\",\n\t\"fileSavedSuccessfully\": \"ファイルは正常に保存されました\",\n\t\"fileSavedClickToOpen\": \"ファイルを保存しました。クリックして開く\",\n\t\"preparing\": \"準備中...\",\n\t\"progress\": \"進行状況\",\n\t\"speed\": \"速度\",\n\t\"quality\": \"品質\",\n\t\"restartApp\": \"アプリを再起動\",\n\t\"subtitles\": \"字幕\",\n\t\"downloadSubtitlesAvailable\": \"利用可能な場合は字幕をダウンロード\",\n\t\"downloadSubtitlesAuto\": \"自動生成された字幕をダウンロード\",\n\t\"extractAudioFromVideo\": \"ビデオからオーディオを抽出\",\n\t\"extract\": \"抽出\",\n\t\"downloadingNecessaryFiles\": \"必要なファイルをダウンロード中\",\n\t\"qualityLow\": \"低\",\n\t\"qualityMedium\": \"中\",\n\t\"appDescription\": \"ytDownloaderを使えば、Youtube・Facebook・Instagram・Tiktok・Twitterなど何百ものサイトからビデオやオーディオをダウンロードすることができます\",\n\t\"pasteText\": \"クリップボードからビデオリンクを貼り付けるにはクリックしてください\",\n\t\"pastePlaylistLinkTooltip\": \"クリップボードからプレイリストのリンクを貼り付けるにはクリックしてください\",\n\t\"link\": \"リンク:\",\n\t\"downloadingPlaylist\": \"プレイリストをダウンロード中:\",\n\t\"downloadPlaylistButton\": \"プレイリストをダウンロード\",\n\t\"playlistDownloaded\": \"プレイリストをダウンロードしました\",\n\t\"cookiesWarning\": \"このオプションを使用すると、制限されたコンテンツをダウンロードできます。クッキーがない場合はエラーが発生します。\",\n\t\"selectBrowserForCookies\": \"Cookieを使用するブラウザを選択\",\n\t\"none\": \"無し\",\n\t\"updateAvailableDownloadPrompt\": \"新しいバージョンが利用可能です。ダウンロードしますか？\",\n\t\"updateAvailablePrompt\": \"新しいバージョンが利用可能です。アップデートしますか？\",\n\t\"update\": \"アップデート\",\n\t\"no\": \"いいえ\",\n\t\"installAndRestartPrompt\": \"インストールして再起動しますか？\",\n\t\"restart\": \"再起動\",\n\t\"later\": \"後で\",\n\t\"extractAudio\": \"オーディオを抽出\",\n\t\"selectVideoFormat\": \"ビデオフォーマットを選択 \",\n\t\"selectAudioFormat\": \"オーディオフォーマットを選択 \",\n\t\"maxActiveDownloads\": \"アクティブなダウンロードの最大数\",\n\t\"preferredVideoQuality\": \"優先するビデオ品質\",\n\t\"preferredAudioFormat\": \"優先する音声フォーマット\",\n\t\"best\": \"最高\",\n\t\"fileSaved\": \"ファイルを保存しました。\",\n\t\"openDownloadFolder\": \"ダウンロードフォルダを開く\",\n\t\"path\": \"パス:\",\n\t\"selectConfigFile\": \"設定ファイルを選択\",\n\t\"useConfigFile\": \"設定ファイルを使用\",\n\t\"playlistFilenameFormat\": \"プレイリストのファイル名フォーマット\",\n\t\"playlistFolderNameFormat\": \"プレイリストのフォルダ名フォーマット\",\n\t\"resetToDefault\": \"初期設定に戻す\",\n\t\"playlistRange\": \"プレイリストの範囲\",\n\t\"thumbnail\": \"サムネイル\",\n\t\"linkAdded\": \"リンクを追加しました\",\n\t\"downloadThumbnails\": \"サムネイルをダウンロード\",\n\t\"saveVideoLinksToFile\": \"ビデオリンクをファイルに保存\",\n\t\"closeAppToTray\": \"システムトレイにアプリを閉じる\",\n\t\"useConfigFileCheckbox\": \"設定ファイルを使用\",\n\t\"openApp\": \"アプリを開く\",\n\t\"pasteVideoLink\": \"ビデオリンクを貼り付け\",\n\t\"quit\": \"終了\",\n\t\"errorDetails\": \"エラーの詳細\",\n\t\"clickToCopy\": \"クリックしてコピー\",\n\t\"copiedText\": \"コピーしたテキスト\",\n\t\"qualityNormal\": \"標準\",\n\t\"qualityGood\": \"良\",\n\t\"qualityBad\": \"悪\",\n\t\"qualityWorst\": \"最悪\",\n\t\"selectQuality\": \"品質を選択\",\n\t\"disableAutoUpdates\": \"自動アップデートを無効\",\n\t\"qualityUltraLow\": \"超低\",\n\t\"closeAppOnFinish\": \"ダウンロード終了時にアプリを閉じる\",\n\t\"auto\": \"自動\",\n\t\"theme\": \"外観\",\n\t\"themeLight\": \"ライト\",\n\t\"themeDark\": \"ダーク\",\n\t\"themeFrappe\": \"フラッペ\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"マトリックス\",\n\t\"themeSolarizedDark\": \"ソーラライズド・ダーク\",\n\t\"preferredVideoCodec\": \"優先するビデオコーデック\",\n\t\"showMoreFormatOptions\": \"他のフォーマットオプションを表示\",\n\t\"flatsealPermissionWarning\": \"これを使用するには、ホームディレクトリにアクセスする権限をアプリに与える必要があります。 テキスト'filesystem=home'で権限を有効にすることで、Flatsealでそれを行うことができます\",\n\t\"noAudio\": \"オーディオなし\",\n\t\"proxy\": \"プロキシ\",\n\t\"clearDownloads\": \"ダウンロードをクリア\",\n\t\"compressor\": \"コンプレッサー\",\n\t\"dragAndDropFiles\": \"ファイル(群)をドラッグ＆ドロップ\",\n\t\"chooseFiles\": \"ファイルを選択\",\n\t\"noFilesSelected\": \"ファイルは選択されていません\",\n\t\"videoFormat\": \"ビデオフォーマット\",\n\t\"videoEncoder\": \"ビデオエンコーダー\",\n\t\"compressionSpeed\": \"圧縮速度\",\n\t\"videoQuality\": \"ビデオ品質\",\n\t\"audioFormat\": \"オーディオフォーマット\",\n\t\"outputSuffix\": \"出力サフィックス\",\n\t\"outputInSameFolder\": \"同じフォルダに出力\",\n\t\"selectCustomFolder\": \"カスタムフォルダを選択\",\n\t\"startCompression\": \"圧縮を開始\",\n\t\"cancel\": \"キャンセル\",\n\t\"errorClickForDetails\": \"エラー！クリックで詳細を確認\",\n\t\"homebrewYtDlpWarning\": \"まずHomebrewからyt-dlpをダウンロードする必要があります\",\n\t\"openHomebrew\": \"Homebrewを開く\",\n\t\"downloadHistory\": \"ダウンロード履歴\",\n\t\"close\": \"閉じる\",\n\t\"searchByTitleOrUrl\": \"タイトルまたはURLで検索...\",\n\t\"allFormats\": \"全てのフォーマット\",\n\t\"exportAsJson\": \"JSONとしてエクスポート\",\n\t\"exportAsCsv\": \"CSVとしてエクスポート\",\n\t\"clearAllHistory\": \"全ての履歴をクリア\",\n\t\"noDownloadsYet\": \"まだダウンロードはありません\",\n\t\"downloadHistoryPlaceholder\": \"ここにダウンロード履歴が表示されます\",\n\t\"format\": \"フォーマット\",\n\t\"size\": \"サイズ\",\n\t\"date\": \"日付\",\n\t\"duration\": \"期間\",\n\t\"copyUrl\": \"URLをコピー\",\n\t\"open\": \"開く\",\n\t\"delete\": \"削除\",\n\t\"totalDownloads\": \"合計ダウンロード数\",\n\t\"totalSize\": \"合計サイズ\",\n\t\"mostCommonFormat\": \"最も一般的なフォーマット\",\n\t\"urlCopiedToClipboard\": \"URLがクリップボードにコピーされました！\",\n\t\"confirmDeleteHistoryItem\": \"本当にこのアイテムを履歴から削除してもよろしいですか？\",\n\t\"confirmClearAllHistory\": \"本当に全てのダウンロード履歴をクリアしてもよろしいですか？この操作は元に戻せません！\",\n\t\"fileDoesNotExist\": \"ファイルはもう存在しません\",\n\t\"updatingYtdlp\": \"yt-dlpの更新\",\n\t\"updatedYtdlp\": \"更新日 yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Yt-dlpが更新されている場合は、更新が完了するのを待ちます。yt-dlpを自分でインストールした場合は更新してください。\",\n\t\"failedToDeleteHistoryItem\": \"履歴アイテムの削除に失敗しました\",\n\t\"customArgsTxt\": \"カスタム yt-dlp オプションを設定します。\",\n\t\"learnMore\": \"詳細\",\n\t\"updateError\": \"更新処理中にエラー発生.\",\n\t\"unableToAccessDir\": \"プログラムはそのフォルダにアクセスできません\",\n\t\"downloadingUpdate\": \"更新プログラムをダウンロード中\"\n}\n"
  },
  {
    "path": "translations/ne-NP.json",
    "content": "{\n\t\"preferences\": \"सेटिङहरू\",\n\t\"about\": \"बारेमा\",\n\t\"downloadLocation\": \"डाउनलोड स्थान\",\n\t\"currentDownloadLocation\": \"हालको डाउनलोड स्थान - \",\n\t\"enableTransparentDarkMode\": \"पारदर्शी डार्क मोड सक्षम गर्नुहोस् (लिनक्स मात्र, पुनः सुरु गर्नु पर्छ)\",\n\t\"downloadingNecessaryFilesWait\": \"कृपया पर्खनुहोस्, आवश्यक फाइलहरू डाउनलोड हुँदैछन्\",\n\t\"video\": \"भिडियो\",\n\t\"audio\": \"अडियो\",\n\t\"title\": \"शीर्षक \",\n\t\"selectFormat\": \"ढाँचा चयन गर्नुहोस् \",\n\t\"download\": \"डाउनलोड गर्नुहोस्\",\n\t\"selectDownloadLocation\": \"डाउनलोड स्थान चयन गर्नुहोस्\",\n\t\"moreOptions\": \"थप विकल्पहरू\",\n\t\"start\": \"सुरु\",\n\t\"selectLanguageRelaunch\": \"भाषा चयन गर्नुहोस् (पुनः सुरु गर्नु पर्छ)\",\n\t\"downloadTimeRange\": \"समय दायरा डाउनलोड\",\n\t\"end\": \"समाप्ति\",\n\t\"timeRangeStartEmptyHint\": \"यदि खाली राखियो भने, यो सुरु देखि हुनेछ\",\n\t\"timeRangeEndEmptyHint\": \"यदि खाली राखियो भने, यो सुरु अन्त्यदेखि हुनेछ\",\n\t\"homepage\": \"गृहपृष्ठ\",\n\t\"aboutAppDescription\": \"यो Node.js र Electron मा निर्मित एक नि: शुल्क र खुला स्रोत एप हो। yt-dlp डाउनलोड गर्न प्रयोग गरिएको छ\",\n\t\"sourceCodeAvailable\": \"स्रोत कोड उपलब्ध छ \",\n\t\"here\": \"यहाँ\",\n\t\"processing\": \"प्रशोधन भइरहेको\",\n\t\"errorNetworkOrUrl\": \"केही त्रुटि भएको छ। आफ्नो नेटवर्क जाँच गर्नुहोस् र सही URL प्रयोग गर्नुहोस्\",\n\t\"errorFailedFileDownload\": \"आवश्यक फाइलहरू डाउनलोड गर्न असफल भयो। कृपया आफ्नो नेटवर्क जाँच गर्नुहोस् र फेरि प्रयास गर्नुहोस्\",\n\t\"tryAgain\": \"फेरि प्रयास गर्नुहोस्\",\n\t\"unknownSize\": \"अज्ञात आकार\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"अज्ञात गुणस्तर\",\n\t\"downloading\": \"डाउनलोड हुँदैछ...\",\n\t\"errorHoverForDetails\": \"केही त्रुटि भएको छ। विवरण हेर्न होभर गर्नुहोस्\",\n\t\"fileSavedSuccessfully\": \"फाइल सफलतापूर्वक सुरक्षित भयो\",\n\t\"fileSavedClickToOpen\": \"फाइल सुरक्षित भयो। खोल्न क्लिक गर्नुहोस्\",\n\t\"preparing\": \"तयारी हुँदैछ...\",\n\t\"progress\": \"प्रगति\",\n\t\"speed\": \"गति\",\n\t\"quality\": \"गुणस्तर\",\n\t\"restartApp\": \"एप पुनः सुरु गर्नुहोस्\",\n\t\"subtitles\": \"उपशीर्षकहरू\",\n\t\"downloadSubtitlesAvailable\": \"उपलब्ध भएमा उपशीर्षकहरू डाउनलोड गर्नुहोस्\",\n\t\"downloadSubtitlesAuto\": \"स्वचालित रूपमा उत्पन्न उपशीर्षकहरू डाउनलोड गर्नुहोस्\",\n\t\"extractAudioFromVideo\": \"भिडियोबाट अडियो निकाल्नुहोस्\",\n\t\"extract\": \"निकाल्नुहोस्\",\n\t\"downloadingNecessaryFiles\": \"आवश्यक फाइलहरू डाउनलोड हुँदैछन्\",\n\t\"qualityLow\": \"कम\",\n\t\"qualityMedium\": \"मध्यम\",\n\t\"appDescription\": \"ytDownloader ले तपाईंलाई Youtube, Facebook, Instagram, Tiktok, Twitter, लगायत सयौं साइटहरूबाट भिडियो र अडियो डाउनलोड गर्न दिन्छ\",\n\t\"pasteText\": \"क्लिपबोर्डबाट भिडियो लिङ्क टाँस्न क्लिक गर्नुहोस्\",\n\t\"pastePlaylistLinkTooltip\": \"क्लिपबोर्डबाट प्लेलिस्ट लिङ्क टाँस्न क्लिक गर्नुहोस्\",\n\t\"link\": \"लिङ्क:\",\n\t\"downloadingPlaylist\": \"प्लेलिस्ट डाउनलोड हुँदैछ:\",\n\t\"downloadPlaylistButton\": \"प्लेलिस्ट डाउनलोड गर्नुहोस्\",\n\t\"playlistDownloaded\": \"प्लेलिस्ट डाउनलोड भयो\",\n\t\"cookiesWarning\": \"यो विकल्पले तपाईंलाई प्रतिबन्धित सामग्री डाउनलोड गर्न दिन्छ। तपाईले असफल पाउनुहुनेछ यदि cookies छैन भने\",\n\t\"selectBrowserForCookies\": \"Cookies प्रयोग गर्न ब्राउजर चयन गर्नुहोस्\",\n\t\"none\": \"कुनै पनि छैन\",\n\t\"updateAvailableDownloadPrompt\": \"नयाँ संस्करण उपलब्ध छ, के तपाईं यसलाई डाउनलोड गर्न चाहनुहुन्छ?\",\n\t\"updateAvailablePrompt\": \"नयाँ संस्करण उपलब्ध छ, के तपाईं अद्यावधिक गर्न चाहनुहुन्छ?\",\n\t\"update\": \"अद्यावधिक गर्नुहोस्\",\n\t\"no\": \"छैन\",\n\t\"installAndRestartPrompt\": \"अहिले स्थापना गरेर पुनः सुरु गर्ने?\",\n\t\"restart\": \"पुनः सुरु गर्नुहोस्\",\n\t\"later\": \"पछि\",\n\t\"extractAudio\": \"अडियो निकाल्नुहोस्\",\n\t\"selectVideoFormat\": \"भिडियो ढाँचा चयन गर्नुहोस् \",\n\t\"selectAudioFormat\": \"अडियो ढाँचा चयन गर्नुहोस् \",\n\t\"maxActiveDownloads\": \"सक्रिय डाउनलोडहरूको अधिकतम संख्या\",\n\t\"preferredVideoQuality\": \"मनपर्ने भिडियो गुणस्तर\",\n\t\"preferredAudioFormat\": \"मनपर्ने अडियो ढाँचा\",\n\t\"best\": \"उत्कृष्ट\",\n\t\"fileSaved\": \"फाइल सुरक्षित भयो।\",\n\t\"openDownloadFolder\": \"डाउनलोड फोल्डर खोल्नुहोस्\",\n\t\"path\": \"मार्ग:\",\n\t\"selectConfigFile\": \"सेटिङ फाइल चयन गर्नुहोस्\",\n\t\"useConfigFile\": \"सेटिङ फाइल प्रयोग गर्नुहोस्\",\n\t\"playlistFilenameFormat\": \"प्लेलिस्टको लागि फाइलनाम ढाँचा\",\n\t\"playlistFolderNameFormat\": \"प्लेलिस्टको लागि फोल्डर नाम ढाँचा\",\n\t\"resetToDefault\": \"पूर्वनिर्धारितमा रिसेट गर्नुहोस्\",\n\t\"playlistRange\": \"प्लेलिस्ट दायरा\",\n\t\"thumbnail\": \"थम्बनेल\",\n\t\"linkAdded\": \"लिङ्क थपियो\",\n\t\"downloadThumbnails\": \"थम्बनेलहरू डाउनलोड गर्नुहोस्\",\n\t\"saveVideoLinksToFile\": \"भिडियो लिङ्कहरू फाइलमा सुरक्षित गर्नुहोस्\",\n\t\"closeAppToTray\": \"सिस्टम ट्रेमा एप बन्द गर्नुहोस्\",\n\t\"useConfigFileCheckbox\": \"सेटिङ फाइल प्रयोग गर्नुहोस्\",\n\t\"openApp\": \"एप खोल्नुहोस्\",\n\t\"pasteVideoLink\": \"भिडियो लिङ्क टाँस्नुहोस्\",\n\t\"quit\": \"छोड्नुहोस्\",\n\t\"errorDetails\": \"त्रुटि विवरणहरू\",\n\t\"clickToCopy\": \"प्रतिलिपि गर्न क्लिक गर्नुहोस्\",\n\t\"copiedText\": \"प्रतिलिपि गरिएको पाठ\",\n\t\"qualityNormal\": \"सामान्य\",\n\t\"qualityGood\": \"राम्रो\",\n\t\"qualityBad\": \"खराब\",\n\t\"qualityWorst\": \"सबैभन्दा खराब\",\n\t\"selectQuality\": \"गुणस्तर चयन गर्नुहोस्\",\n\t\"disableAutoUpdates\": \"स्वतः अद्यावधिकहरू असक्षम गर्नुहोस्\",\n\t\"qualityUltraLow\": \"अति कम\",\n\t\"closeAppOnFinish\": \"डाउनलोड समाप्त भएपछि एप बन्द गर्नुहोस्\",\n\t\"auto\": \"स्वत:\",\n\t\"theme\": \"थीम\",\n\t\"themeLight\": \"हल्का\",\n\t\"themeDark\": \"गाढा\",\n\t\"themeFrappe\": \"फ्रेप्पे\",\n\t\"themeOneDark\": \"एक गाढा\",\n\t\"themeMatrix\": \"म्याट्रिक्स\",\n\t\"themeSolarizedDark\": \"सोलराइज्ड गाढा\",\n\t\"preferredVideoCodec\": \"मनपर्ने भिडियो कोडेक\",\n\t\"showMoreFormatOptions\": \"थप ढाँचा विकल्पहरू देखाउनुहोस्\",\n\t\"flatsealPermissionWarning\": \"यो प्रयोग गर्नको लागि तपाईंले एपलाई होम डाइरेक्टरी पहुँच गर्न अनुमति दिनुपर्छ। तपाईंले Flatseal मा 'filesystem=home' पाठ सहितको अनुमति सक्षम गरेर यो गर्न सक्नुहुन्छ\",\n\t\"noAudio\": \"अडियो छैन\",\n\t\"proxy\": \"प्रोक्सी\",\n\t\"clearDownloads\": \"डाउनलोडहरू खाली गर्नुहोस्\",\n\t\"compressor\": \"कम्प्रेसर\",\n\t\"dragAndDropFiles\": \"फाइल(हरू) तान्नुहोस् र छोड्नुहोस्\",\n\t\"chooseFiles\": \"फाइल(हरू) छान्नुहोस्\",\n\t\"noFilesSelected\": \"कुनै फाइल चयन गरिएको छैन\",\n\t\"videoFormat\": \"भिडियो ढाँचा\",\n\t\"videoEncoder\": \"भिडियो इन्कोडर\",\n\t\"compressionSpeed\": \"कम्प्रेसन गति\",\n\t\"videoQuality\": \"भिडियो गुणस्तर\",\n\t\"audioFormat\": \"अडियो ढाँचा\",\n\t\"outputSuffix\": \"आउटपुट प्रत्यय\",\n\t\"outputInSameFolder\": \"एउटै फोल्डरमा आउटपुट\",\n\t\"selectCustomFolder\": \"अनुकूल फोल्डर चयन गर्नुहोस्\",\n\t\"startCompression\": \"कम्प्रेसन सुरु गर्नुहोस्\",\n\t\"cancel\": \"रद्द गर्नुहोस्\",\n\t\"errorClickForDetails\": \"त्रुटि! विवरणहरूको लागि क्लिक गर्नुहोस्\",\n\t\"homebrewYtDlpWarning\": \"तपाईंले पहिले Homebrew बाट yt-dlp डाउनलोड गर्नुपर्छ\",\n\t\"openHomebrew\": \"Homebrew खोल्नुहोस्\",\n\t\"downloadHistory\": \"डाउनलोड ईतिहास\",\n\t\"close\": \"बन्द गर्नुहोस्\",\n\t\"searchByTitleOrUrl\": \"शीर्षक वा URL द्वारा खोज्नुहोस्...\",\n\t\"allFormats\": \"सबै ढाँचाहरू\",\n\t\"exportAsJson\": \"JSON को रूपमा निर्यात गर्नुहोस्\",\n\t\"exportAsCsv\": \"CSV को रूपमा निर्यात गर्नुहोस्\",\n\t\"clearAllHistory\": \"सबै ईतिहास खाली गर्नुहोस्\",\n\t\"noDownloadsYet\": \"अहिलेसम्म कुनै डाउनलोड छैन\",\n\t\"downloadHistoryPlaceholder\": \"तपाईंको डाउनलोड ईतिहास यहाँ देखा पर्नेछ\",\n\t\"format\": \"ढाँचा\",\n\t\"size\": \"आकार\",\n\t\"date\": \"मिति\",\n\t\"duration\": \"अवधि\",\n\t\"copyUrl\": \"URL प्रतिलिपि गर्नुहोस्\",\n\t\"open\": \"खोल्नुहोस्\",\n\t\"delete\": \"मेटाउनुहोस्\",\n\t\"totalDownloads\": \"कुल डाउनलोडहरू\",\n\t\"totalSize\": \"कुल आकार\",\n\t\"mostCommonFormat\": \"सबैभन्दा सामान्य ढाँचा\",\n\t\"urlCopiedToClipboard\": \"URL क्लिपबोर्डमा प्रतिलिपि भयो!\",\n\t\"confirmDeleteHistoryItem\": \"के तपाईं निश्चित हुनुहुन्छ कि तपाईं यो वस्तु ईतिहासबाट मेटाउन चाहनुहुन्छ?\",\n\t\"confirmClearAllHistory\": \"के तपाईं निश्चित हुनुहुन्छ कि तपाईं सबै डाउनलोड ईतिहास खाली गर्न चाहनुहुन्छ? यो पूर्ववत गर्न सकिँदैन!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/pl-PL.json",
    "content": "{\n\t\"preferences\": \"Ustawienia\",\n\t\"about\": \"O programie\",\n\t\"downloadLocation\": \"Lokalizacja pobierania\",\n\t\"currentDownloadLocation\": \"Obecna lokalizacja pobierania - \",\n\t\"enableTransparentDarkMode\": \"Włącz przezroczysty tryb okna (tylko Linux, wymaga ponownego uruchomienia)\",\n\t\"downloadingNecessaryFilesWait\": \"Proszę czekać, pobierane są wymagane pliki\",\n\t\"video\": \"Wideo\",\n\t\"audio\": \"Audio\",\n\t\"title\": \"Tytuł \",\n\t\"selectFormat\": \"Wybierz format \",\n\t\"download\": \"Pobierz\",\n\t\"selectDownloadLocation\": \"Wybierz lokalizację pobierania\",\n\t\"moreOptions\": \"Więcej opcji\",\n\t\"start\": \"Początek\",\n\t\"selectLanguageRelaunch\": \"Wybierz język (Wymaga ponownego uruchomienia)\",\n\t\"downloadTimeRange\": \"Pobierz określony czasowo wycinek\",\n\t\"end\": \"Koniec\",\n\t\"timeRangeStartEmptyHint\": \"Jeśli pole jest puste, zacznie od samego początku\",\n\t\"timeRangeEndEmptyHint\": \"Jeśli pole jest puste, pobierze do samego końca\",\n\t\"homepage\": \"Strona główna\",\n\t\"aboutAppDescription\": \"Jest to darmowa aplikacja z otwartym kodem źródłowym, zbudowana przy użyciu Node.js i Electron. yt-dlp jest używany do pobierania\",\n\t\"sourceCodeAvailable\": \"Kod źródłowy jest dostępny \",\n\t\"here\": \"tutaj\",\n\t\"processing\": \"Przetwarzanie\",\n\t\"errorNetworkOrUrl\": \"Wystąpił błąd. Sprawdź swoje połączenie internetowe i skopiowany adres URL\",\n\t\"errorFailedFileDownload\": \"Pobieranie wymaganych plików nie powiodło się. Sprawdź swoje połączenie internetowe i spróbuj ponownie\",\n\t\"tryAgain\": \"Spróbuj ponownie\",\n\t\"unknownSize\": \"Nieznany rozmiar\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Nieznana jakość\",\n\t\"downloading\": \"Pobieranie...\",\n\t\"errorHoverForDetails\": \"Wystąpił błąd. Najedź kursorem by zobaczyć więcej informacji\",\n\t\"fileSavedSuccessfully\": \"Plik zapisany pomyślnie\",\n\t\"fileSavedClickToOpen\": \"Plik zapisany. Naciśnij żeby otworzyć\",\n\t\"preparing\": \"Przygotowywanie...\",\n\t\"progress\": \"Postęp\",\n\t\"speed\": \"Prędkość\",\n\t\"quality\": \"Jakość\",\n\t\"restartApp\": \"Zrestartuj aplikację\",\n\t\"subtitles\": \"Napisy\",\n\t\"downloadSubtitlesAvailable\": \"Pobierz napisy jeśli są dostępne\",\n\t\"downloadSubtitlesAuto\": \"Pobierz automatycznie wygenerowane napisy\",\n\t\"extractAudioFromVideo\": \"Wydobądź Audio z Wideo\",\n\t\"extract\": \"Wydobądź\",\n\t\"downloadingNecessaryFiles\": \"Pobieranie wymaganych plików\",\n\t\"qualityLow\": \"niska\",\n\t\"qualityMedium\": \"średnia\",\n\t\"appDescription\": \"ytDownloader pomaga pobierać wideo i audio z setek różnych stron takich jak YouTube, Instagram, TikTok, Twitter i tym podobnych\",\n\t\"pasteText\": \"Kliknij, aby wkleić link wideo ze schowka\",\n\t\"pastePlaylistLinkTooltip\": \"Kliknij, aby wkleić link playlisty ze schowka\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"Pobieranie playlisty:\",\n\t\"downloadPlaylistButton\": \"Pobierz playlistę\",\n\t\"playlistDownloaded\": \"Playlista pobrana\",\n\t\"cookiesWarning\": \"Ta opcja pozwala pobierać treści z ograniczonym dostępem. Otrzymasz błędy jeśli nie będzie tu plików cookies\",\n\t\"selectBrowserForCookies\": \"Wybierz przeglądarkę do używania cookies\",\n\t\"none\": \"Żadna\",\n\t\"updateAvailableDownloadPrompt\": \"Nowa wersja jest dostępna. Czy chcesz ją pobrać?\",\n\t\"updateAvailablePrompt\": \"Nowa wersja jest dostępna. Czy chcesz zaktualizować program?\",\n\t\"update\": \"Aktualizuj\",\n\t\"no\": \"Nie\",\n\t\"installAndRestartPrompt\": \"Zainstalować i zrestartować teraz?\",\n\t\"restart\": \"Zrestartuj\",\n\t\"later\": \"Później\",\n\t\"extractAudio\": \"Wydobądź Audio\",\n\t\"selectVideoFormat\": \"Wybierz format Wideo \",\n\t\"selectAudioFormat\": \"Wybierz format Audio \",\n\t\"maxActiveDownloads\": \"Maksymalna liczba aktywnych pobrań\",\n\t\"preferredVideoQuality\": \"Preferowana jakość wideo\",\n\t\"preferredAudioFormat\": \"Preferowany format audio\",\n\t\"best\": \"Najlepsza\",\n\t\"fileSaved\": \"Plik zapisany.\",\n\t\"openDownloadFolder\": \"Otwórz folder pobierania\",\n\t\"path\": \"Ścieżka:\",\n\t\"selectConfigFile\": \"Wybierz plik konfiguracyjny\",\n\t\"useConfigFile\": \"Użyj pliku konfiguracji\",\n\t\"playlistFilenameFormat\": \"Format nazwy pliku dla playlist\",\n\t\"playlistFolderNameFormat\": \"Format nazwy folderu dla list odtwarzania\",\n\t\"resetToDefault\": \"Przywróć domyślne\",\n\t\"playlistRange\": \"Zakres listy odtwarzania\",\n\t\"thumbnail\": \"Miniaturka\",\n\t\"linkAdded\": \"Link dodany\",\n\t\"downloadThumbnails\": \"Pobierz miniaturki\",\n\t\"saveVideoLinksToFile\": \"Zapisz odnośniki wideo do pliku\",\n\t\"closeAppToTray\": \"Zamknij aplikację do zasobnika systemowego\",\n\t\"useConfigFileCheckbox\": \"Użyj pliku konfiguracyjnego\",\n\t\"openApp\": \"Otwórz aplikację\",\n\t\"pasteVideoLink\": \"Wklej link wideo\",\n\t\"quit\": \"Wyjdź\",\n\t\"errorDetails\": \"Szczegóły błędu\",\n\t\"clickToCopy\": \"Kliknij aby skopiować\",\n\t\"copiedText\": \"Skopiowany tekst\",\n\t\"qualityNormal\": \"Normalny\",\n\t\"qualityGood\": \"Dobra\",\n\t\"qualityBad\": \"Zła\",\n\t\"qualityWorst\": \"Najgorsza\",\n\t\"selectQuality\": \"Wybierz jakość\",\n\t\"disableAutoUpdates\": \"Wyłącz automatyczne aktualizacje\",\n\t\"qualityUltraLow\": \"bardzo niska\",\n\t\"closeAppOnFinish\": \"Zamknij aplikację po zakończeniu pobierania\",\n\t\"auto\": \"Automatycznie\",\n\t\"theme\": \"Motyw\",\n\t\"themeLight\": \"Jasny\",\n\t\"themeDark\": \"Ciemny\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matryca\",\n\t\"themeSolarizedDark\": \"Solarized ciemny\",\n\t\"preferredVideoCodec\": \"Preferowany kodek wideo\",\n\t\"showMoreFormatOptions\": \"Pokaż więcej opcji formatu\",\n\t\"flatsealPermissionWarning\": \"Aby z tego skorzystać, Musisz zezwolić aplikacji na dostęp do katalogu domowego. Możesz to zrobić za pomocą Flatseal, włączając uprawnienie z tekstem \\\"filesystem=home\\\"\",\n\t\"noAudio\": \"Bez dźwięku\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Wyczyść pobrania\",\n\t\"compressor\": \"Kompresor\",\n\t\"dragAndDropFiles\": \"Przeciągnij i upuść plik(i)\",\n\t\"chooseFiles\": \"Wybierz plik(i)\",\n\t\"noFilesSelected\": \"Nie wybrano plików\",\n\t\"videoFormat\": \"Format wideo\",\n\t\"videoEncoder\": \"Koder wideo\",\n\t\"compressionSpeed\": \"Prędkość kompresji\",\n\t\"videoQuality\": \"Jakość wideo\",\n\t\"audioFormat\": \"Format audio\",\n\t\"outputSuffix\": \"Sufiks wyjściowy\",\n\t\"outputInSameFolder\": \"Wyjście w tym samym folderze\",\n\t\"selectCustomFolder\": \"Wybierz niestandardowy folder\",\n\t\"startCompression\": \"Rozpocznij kompresję\",\n\t\"cancel\": \"Anuluj\",\n\t\"errorClickForDetails\": \"Błąd! Kliknij, aby zobaczyć szczegóły\",\n\t\"homebrewYtDlpWarning\": \"Najpierw musisz pobrać yt-dlp z Homebrew\",\n\t\"openHomebrew\": \"Otwórz Homebrew\",\n\t\"downloadHistory\": \"Historia pobierania\",\n\t\"close\": \"Zamknij\",\n\t\"searchByTitleOrUrl\": \"Szukaj według tytułu lub URL...\",\n\t\"allFormats\": \"Wszystkie formaty\",\n\t\"exportAsJson\": \"Eksportuj jako JSON\",\n\t\"exportAsCsv\": \"Eksportuj jako CSV\",\n\t\"clearAllHistory\": \"Wyczyść całą historię\",\n\t\"noDownloadsYet\": \"Brak pobrań\",\n\t\"downloadHistoryPlaceholder\": \"Twoja historia pobierania pojawi się tutaj\",\n\t\"format\": \"Format\",\n\t\"size\": \"Rozmiar\",\n\t\"date\": \"Data\",\n\t\"duration\": \"Czas trwania\",\n\t\"copyUrl\": \"Kopiuj URL\",\n\t\"open\": \"Otwórz\",\n\t\"delete\": \"Usuń\",\n\t\"totalDownloads\": \"Wszystkie pobrania\",\n\t\"totalSize\": \"Całkowity rozmiar\",\n\t\"mostCommonFormat\": \"Najczęstszy format\",\n\t\"urlCopiedToClipboard\": \"URL skopiowany do schowka!\",\n\t\"confirmDeleteHistoryItem\": \"Czy na pewno chcesz usunąć ten element z historii?\",\n\t\"confirmClearAllHistory\": \"Czy na pewno chcesz wyczyścić całą historię pobierania? Tej operacji nie można cofnąć!\",\n\t\"fileDoesNotExist\": \"Plik już nie istnieje\",\n\t\"updatingYtdlp\": \"Aktualizacja yt-dlp\",\n\t\"updatedYtdlp\": \"Zaktualizowano yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Jeśli yt-dlp aktualizuje, poczekaj na zakończenie aktualizacji. Jeśli zainstalowałeś yt-dlp samodzielnie, zaktualizuj go.\",\n\t\"failedToDeleteHistoryItem\": \"Nie udało się usunąć elementu historii\",\n\t\"customArgsTxt\": \"Ustaw niestandardowe opcje yt-dlp.\",\n\t\"learnMore\": \"Dowiedz się więcej\",\n\t\"updateError\": \"Wystąpił błąd podczas procesu aktualizacji\",\n\t\"unableToAccessDir\": \"Program nie może uzyskać dostępu do tego folderu\",\n\t\"downloadingUpdate\": \"Pobieranie aktualizacji\"\n}\n"
  },
  {
    "path": "translations/pt-BR.json",
    "content": "{\n\t\"preferences\": \"Preferências\",\n\t\"about\": \"Sobre\",\n\t\"downloadLocation\": \"Local para salvar\",\n\t\"currentDownloadLocation\": \"Local para salvar atual - \",\n\t\"enableTransparentDarkMode\": \"Habilitar modo escuro transparente (somente Linux, requer reinicialização)\",\n\t\"downloadingNecessaryFilesWait\": \"Por favor, aguarde, transferindo arquivos necessários\",\n\t\"video\": \"Vídeo\",\n\t\"audio\": \"Áudio\",\n\t\"title\": \"Título \",\n\t\"selectFormat\": \"Selecionar um formato \",\n\t\"download\": \"Baixar\",\n\t\"selectDownloadLocation\": \"Selecionar local para salvar\",\n\t\"moreOptions\": \"Mais opções\",\n\t\"start\": \"Início\",\n\t\"selectLanguageRelaunch\": \"Selecionar Idioma (Requer reinicialização)\",\n\t\"downloadTimeRange\": \"Baixar intervalo de tempo específico\",\n\t\"end\": \"Fim\",\n\t\"timeRangeStartEmptyHint\": \"Se não informado, começará do início\",\n\t\"timeRangeEndEmptyHint\": \"Se não informado, será baixado até o fim\",\n\t\"homepage\": \"Página inicial\",\n\t\"aboutAppDescription\": \"É um aplicativo gratuito e de código aberto construído usando Node.js e Electron. yt-dlp é usado para baixar os vídeos\",\n\t\"sourceCodeAvailable\": \"Código-fonte disponível \",\n\t\"here\": \"aqui\",\n\t\"processing\": \"Processando\",\n\t\"errorNetworkOrUrl\": \"Ocorreu um erro. Verifique sua conexão e use a URL correta\",\n\t\"errorFailedFileDownload\": \"Erro ao baixar os arquivos necessários. Verifique sua conexão e tente novamente\",\n\t\"tryAgain\": \"Tentar novamente\",\n\t\"unknownSize\": \"Tamanho desconhecido\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Qualidade desconhecida\",\n\t\"downloading\": \"Baixando...\",\n\t\"errorHoverForDetails\": \"Ocorreu um erro. Passe o mouse para ver detalhes\",\n\t\"fileSavedSuccessfully\": \"Arquivo salvo com sucesso\",\n\t\"fileSavedClickToOpen\": \"Arquivo salvo. Clique para abrir\",\n\t\"preparing\": \"Preparando...\",\n\t\"progress\": \"Progresso\",\n\t\"speed\": \"Velocidade\",\n\t\"quality\": \"Qualidade\",\n\t\"restartApp\": \"Reiniciar aplicativo\",\n\t\"subtitles\": \"Legendas\",\n\t\"downloadSubtitlesAvailable\": \"Baixar legendas se disponíveis\",\n\t\"downloadSubtitlesAuto\": \"Baixar legendas geradas automaticamente\",\n\t\"extractAudioFromVideo\": \"Extrair áudio do vídeo\",\n\t\"extract\": \"Extrair\",\n\t\"downloadingNecessaryFiles\": \"Baixando arquivos necessários\",\n\t\"qualityLow\": \"baixa\",\n\t\"qualityMedium\": \"média\",\n\t\"appDescription\": \"ytDownloader permite baixar vídeos e áudios de centenas de sites como Youtube, Facebook, Instagram, Tiktok, Twitter e mais\",\n\t\"pasteText\": \"Clique para colar o link do vídeo da área de transferência\",\n\t\"pastePlaylistLinkTooltip\": \"Clique para colar o link da playlist da área de transferência\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"Baixando playlist:\",\n\t\"downloadPlaylistButton\": \"Baixar playlist\",\n\t\"playlistDownloaded\": \"Playlist baixada\",\n\t\"cookiesWarning\": \"Esta opção permite baixar conteúdo restrito. Ocorrerão erros se os cookies não estiverem disponíveis\",\n\t\"selectBrowserForCookies\": \"Selecionar navegador de onde usar os cookies\",\n\t\"none\": \"Nenhum\",\n\t\"updateAvailableDownloadPrompt\": \"Há uma nova versão disponível. Gostaria de baixá-la?\",\n\t\"updateAvailablePrompt\": \"Há uma nova versão disponível. Gostaria de atualizar?\",\n\t\"update\": \"Atualizar\",\n\t\"no\": \"Não\",\n\t\"installAndRestartPrompt\": \"Instalar e reiniciar agora?\",\n\t\"restart\": \"Reiniciar\",\n\t\"later\": \"Depois\",\n\t\"extractAudio\": \"Extrair Áudio\",\n\t\"selectVideoFormat\": \"Selecionar Formato de Vídeo \",\n\t\"selectAudioFormat\": \"Selecionar formato de áudio \",\n\t\"maxActiveDownloads\": \"Número máximo de downloads ativos\",\n\t\"preferredVideoQuality\": \"Qualidade preferencial de vídeo\",\n\t\"preferredAudioFormat\": \"Formato de áudio predileto\",\n\t\"best\": \"Melhor\",\n\t\"fileSaved\": \"Arquivo salvo\",\n\t\"openDownloadFolder\": \"Abrir pasta de download\",\n\t\"path\": \"Local:\",\n\t\"selectConfigFile\": \"Selecione arquivo de configuração\",\n\t\"useConfigFile\": \"Usar arquivo de configuração\",\n\t\"playlistFilenameFormat\": \"Formato do arquivo para playlists\",\n\t\"playlistFolderNameFormat\": \"Formato de pasta para playlists\",\n\t\"resetToDefault\": \"Restaurar para Padrão\",\n\t\"playlistRange\": \"Intervalo da playlist\",\n\t\"thumbnail\": \"Miniatura\",\n\t\"linkAdded\": \"Link adicionado\",\n\t\"downloadThumbnails\": \"Baixar miniaturas\",\n\t\"saveVideoLinksToFile\": \"Salvar links para um arquivo\",\n\t\"closeAppToTray\": \"Fechar aplicativo na bandeja do sistema\",\n\t\"useConfigFileCheckbox\": \"Utilizar arquivo de configuração\",\n\t\"openApp\": \"Abrir app\",\n\t\"pasteVideoLink\": \"Colar link do vídeo\",\n\t\"quit\": \"Sair\",\n\t\"errorDetails\": \"Detalhes do erro\",\n\t\"clickToCopy\": \"Clique para copiar\",\n\t\"copiedText\": \"Texto copiado\",\n\t\"qualityNormal\": \"Standard\",\n\t\"qualityGood\": \"Boa\",\n\t\"qualityBad\": \"Ruim\",\n\t\"qualityWorst\": \"Pior\",\n\t\"selectQuality\": \"Escolha a qualidade\",\n\t\"disableAutoUpdates\": \"Desativar atualizações automáticas\",\n\t\"qualityUltraLow\": \"ultra Baixo\",\n\t\"closeAppOnFinish\": \"Fechar aplicativo quando o download terminar\",\n\t\"auto\": \"Automático\",\n\t\"theme\": \"Tema\",\n\t\"themeLight\": \"Luz\",\n\t\"themeDark\": \"Escuro\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"Um Escuro\",\n\t\"themeMatrix\": \"Matriz\",\n\t\"themeSolarizedDark\": \"Escuro Solarizado\",\n\t\"preferredVideoCodec\": \"Codec de vídeo preferido\",\n\t\"showMoreFormatOptions\": \"Mostrar mais opções de formato\",\n\t\"flatsealPermissionWarning\": \"Você precisa dar permissão ao aplicativo para acessar o diretório inicial para usar isso. Você pode fazer isso com Flatseal ativando a permissão com o texto 'filesystem=home'\",\n\t\"noAudio\": \"Sem áudio\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Limpar transferências\",\n\t\"compressor\": \"Compressor\",\n\t\"dragAndDropFiles\": \"Arraste e solte o(s) arquivo(s)\",\n\t\"chooseFiles\": \"Escolher arquivo(s)\",\n\t\"noFilesSelected\": \"Nenhum arquivo selecionado\",\n\t\"videoFormat\": \"Formato de vídeo\",\n\t\"videoEncoder\": \"Codificador de vídeo\",\n\t\"compressionSpeed\": \"Velocidade de compressão\",\n\t\"videoQuality\": \"Qualidade de vídeo\",\n\t\"audioFormat\": \"Formato de áudio\",\n\t\"outputSuffix\": \"Sufixo de saída\",\n\t\"outputInSameFolder\": \"Salvar na mesma pasta\",\n\t\"selectCustomFolder\": \"Selecionar pasta personalizada\",\n\t\"startCompression\": \"Iniciar compressão\",\n\t\"cancel\": \"Cancelar\",\n\t\"errorClickForDetails\": \"Erro! Clique para detalhes\",\n\t\"homebrewYtDlpWarning\": \"Você precisa baixar o yt-dlp pelo Homebrew primeiro\",\n\t\"openHomebrew\": \"Abrir Homebrew\",\n\t\"downloadHistory\": \"Histórico de Downloads\",\n\t\"close\": \"Fechar\",\n\t\"searchByTitleOrUrl\": \"Buscar por título ou URL...\",\n\t\"allFormats\": \"Todos os formatos\",\n\t\"exportAsJson\": \"Exportar como JSON\",\n\t\"exportAsCsv\": \"Exportar como CSV\",\n\t\"clearAllHistory\": \"Limpar todo o histórico\",\n\t\"noDownloadsYet\": \"Nenhum download ainda\",\n\t\"downloadHistoryPlaceholder\": \"Seu histórico de downloads aparecerá aqui\",\n\t\"format\": \"Formato\",\n\t\"size\": \"Tamanho\",\n\t\"date\": \"Data\",\n\t\"duration\": \"Duração\",\n\t\"copyUrl\": \"Copiar URL\",\n\t\"open\": \"Abrir\",\n\t\"delete\": \"Excluir\",\n\t\"totalDownloads\": \"Total de Downloads\",\n\t\"totalSize\": \"Tamanho Total\",\n\t\"mostCommonFormat\": \"Formato Mais Comum\",\n\t\"urlCopiedToClipboard\": \"URL copiada para a área de transferência!\",\n\t\"confirmDeleteHistoryItem\": \"Tem certeza de que deseja excluir este item do histórico?\",\n\t\"confirmClearAllHistory\": \"Tem certeza de que deseja limpar todo o histórico de downloads? Esta ação não pode ser desfeita!\",\n\t\"fileDoesNotExist\": \"Arquivo não existe mais\",\n\t\"updatingYtdlp\": \"Atualizando yt-dlp\",\n\t\"updatedYtdlp\": \"yt-dlp atualizado\",\n\t\"ytDlpUpdateRequired\": \"Se o yt-dlp estiver atualizando, espere que a atualização termine. Se você tiver instalado o yt-dlp, por favor, atualize-o.\",\n\t\"failedToDeleteHistoryItem\": \"Falha ao excluir item do histórico\",\n\t\"customArgsTxt\": \"Defina opções yt-dlp personalizadas.\",\n\t\"learnMore\": \"Saiba mais\",\n\t\"updateError\": \"Ocorreu um erro durante o processo de atualização\",\n\t\"unableToAccessDir\": \"O programa não pode acessar essa pasta\",\n\t\"downloadingUpdate\": \"Baixando atualização\"\n}\n"
  },
  {
    "path": "translations/ru-RU.json",
    "content": "{\n\t\"preferences\": \"Настройки\",\n\t\"about\": \"О программе\",\n\t\"downloadLocation\": \"Папка загрузки\",\n\t\"currentDownloadLocation\": \"Текущая папка загрузки: \",\n\t\"enableTransparentDarkMode\": \"Включить прозрачный тёмный режим (только Linux, требуется перезапуск)\",\n\t\"downloadingNecessaryFilesWait\": \"Пожалуйста, подождите, загружаются необходимые файлы\",\n\t\"video\": \"Видео\",\n\t\"audio\": \"Аудио\",\n\t\"title\": \"Название\",\n\t\"selectFormat\": \"Выберите формат\",\n\t\"download\": \"Скачать\",\n\t\"selectDownloadLocation\": \"Выберите папку для загрузки\",\n\t\"moreOptions\": \"Дополнительные опции\",\n\t\"start\": \"Начало\",\n\t\"selectLanguageRelaunch\": \"Выберите язык (требуется перезапуск)\",\n\t\"downloadTimeRange\": \"Скачать определённый фрагмент\",\n\t\"end\": \"Конец\",\n\t\"timeRangeStartEmptyHint\": \"Если оставить пустым, начнётся с начала\",\n\t\"timeRangeEndEmptyHint\": \"Если оставить пустым, скачается до конца\",\n\t\"homepage\": \"Главная страница\",\n\t\"aboutAppDescription\": \"Это бесплатное приложение с открытым исходным кодом, созданное на основе Node.js и Electron. Для загрузки используется yt-dlp\",\n\t\"sourceCodeAvailable\": \"Исходный код доступен\",\n\t\"here\": \"здесь\",\n\t\"processing\": \"Обработка\",\n\t\"errorNetworkOrUrl\": \"Произошла ошибка. Проверьте подключение к сети и убедитесь, что URL указан верно\",\n\t\"errorFailedFileDownload\": \"Не удалось загрузить необходимые файлы. Проверьте подключение к сети и повторите попытку\",\n\t\"tryAgain\": \"Повторить попытку\",\n\t\"unknownSize\": \"Размер неизвестен\",\n\t\"megabyte\": \"МБ\",\n\t\"unknownQuality\": \"Неизвестное качество\",\n\t\"downloading\": \"Скачивание...\",\n\t\"errorHoverForDetails\": \"Произошла ошибка. Для просмотра подробностей наведите курсор\",\n\t\"fileSavedSuccessfully\": \"Файл успешно сохранён\",\n\t\"fileSavedClickToOpen\": \"Файл сохранён. Нажмите, чтобы открыть\",\n\t\"preparing\": \"Подготовка...\",\n\t\"progress\": \"Прогресс\",\n\t\"speed\": \"Скорость\",\n\t\"quality\": \"Качество\",\n\t\"restartApp\": \"Перезапустить приложение\",\n\t\"subtitles\": \"Субтитры\",\n\t\"downloadSubtitlesAvailable\": \"Скачать субтитры, если доступны\",\n\t\"downloadSubtitlesAuto\": \"Скачать автоматически созданные субтитры\",\n\t\"extractAudioFromVideo\": \"Извлечь аудио из видео\",\n\t\"extract\": \"Извлечь\",\n\t\"downloadingNecessaryFiles\": \"Загрузка необходимых файлов\",\n\t\"qualityLow\": \"Низкое\",\n\t\"qualityMedium\": \"Среднее\",\n\t\"appDescription\": \"ytDownloader позволяет скачивать видео и аудио с сотен сайтов, таких как YouTube, Facebook, Instagram, TikTok, Twitter и других\",\n\t\"pasteText\": \"Нажмите, чтобы вставить ссылку на видео из буфера обмена\",\n\t\"pastePlaylistLinkTooltip\": \"Нажмите, чтобы вставить ссылку на плейлист из буфера обмена\",\n\t\"link\": \"Ссылка:\",\n\t\"downloadingPlaylist\": \"Скачивание плейлиста:\",\n\t\"downloadPlaylistButton\": \"Скачать плейлист\",\n\t\"playlistDownloaded\": \"Плейлист загружен\",\n\t\"cookiesWarning\": \"Эта опция позволяет загружать ограниченный контент. Если файлы cookie отсутствуют, могут возникать ошибки\",\n\t\"selectBrowserForCookies\": \"Выберите браузер для использования файлов cookie\",\n\t\"none\": \"Нет\",\n\t\"updateAvailableDownloadPrompt\": \"Доступна новая версия. Скачать сейчас?\",\n\t\"updateAvailablePrompt\": \"Доступна новая версия. Хотите обновиться?\",\n\t\"update\": \"Обновить\",\n\t\"no\": \"Нет\",\n\t\"installAndRestartPrompt\": \"Установить и перезапустить сейчас?\",\n\t\"restart\": \"Перезапустить\",\n\t\"later\": \"Позже\",\n\t\"extractAudio\": \"Извлечь аудио\",\n\t\"selectVideoFormat\": \"Выберите формат видео\",\n\t\"selectAudioFormat\": \"Выберите формат аудио\",\n\t\"maxActiveDownloads\": \"Максимальное количество одновременных загрузок\",\n\t\"preferredVideoQuality\": \"Предпочитаемое качество видео\",\n\t\"preferredAudioFormat\": \"Предпочитаемый аудиоформат\",\n\t\"best\": \"Лучшее\",\n\t\"fileSaved\": \"Файл сохранён\",\n\t\"openDownloadFolder\": \"Открыть папку загрузок\",\n\t\"path\": \"Путь:\",\n\t\"selectConfigFile\": \"Выбрать файл конфигурации\",\n\t\"useConfigFile\": \"Использовать файл конфигурации\",\n\t\"playlistFilenameFormat\": \"Формат имён файлов для плейлистов\",\n\t\"playlistFolderNameFormat\": \"Формат имён папок для плейлистов\",\n\t\"resetToDefault\": \"Сбросить настройки по умолчанию\",\n\t\"playlistRange\": \"Диапазон плейлиста\",\n\t\"thumbnail\": \"Миниатюра\",\n\t\"linkAdded\": \"Ссылка добавлена\",\n\t\"downloadThumbnails\": \"Скачать миниатюры\",\n\t\"saveVideoLinksToFile\": \"Сохранить ссылки на видео в файл\",\n\t\"closeAppToTray\": \"Свернуть приложение в системный трей\",\n\t\"useConfigFileCheckbox\": \"Использовать файл конфигурации\",\n\t\"openApp\": \"Открыть приложение\",\n\t\"pasteVideoLink\": \"Вставить ссылку на видео\",\n\t\"quit\": \"Закрыть\",\n\t\"errorDetails\": \"Подробности ошибки\",\n\t\"clickToCopy\": \"Нажмите, чтобы скопировать\",\n\t\"copiedText\": \"Текст скопирован\",\n\t\"qualityNormal\": \"Обычное\",\n\t\"qualityGood\": \"Хорошее\",\n\t\"qualityBad\": \"Плохое\",\n\t\"qualityWorst\": \"Худшее\",\n\t\"selectQuality\": \"Выберите качество\",\n\t\"disableAutoUpdates\": \"Отключить автоматические обновления\",\n\t\"qualityUltraLow\": \"Сверхнизкое\",\n\t\"closeAppOnFinish\": \"Закрыть приложение после завершения загрузки\",\n\t\"auto\": \"Авто\",\n\t\"theme\": \"Тема\",\n\t\"themeLight\": \"Светлая\",\n\t\"themeDark\": \"Тёмная\",\n\t\"themeFrappe\": \"Фраппе\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Матрица\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"Предпочтительный видеокодек\",\n\t\"showMoreFormatOptions\": \"Показать больше опций формата\",\n\t\"flatsealPermissionWarning\": \"Чтобы использовать эту функцию, нужно предоставить приложению доступ к домашнему каталогу. Это можно сделать в Flatseal, включив разрешение с параметром 'filesystem=home'\",\n\t\"noAudio\": \"Без аудио\",\n\t\"proxy\": \"Прокси\",\n\t\"clearDownloads\": \"Очистить загрузки\",\n\t\"compressor\": \"Компрессор\",\n\t\"dragAndDropFiles\": \"Перетащите файл(ы)\",\n\t\"chooseFiles\": \"Выбрать файл(ы)\",\n\t\"noFilesSelected\": \"Файлы не выбраны\",\n\t\"videoFormat\": \"Формат видео\",\n\t\"videoEncoder\": \"Видеокодек\",\n\t\"compressionSpeed\": \"Скорость сжатия\",\n\t\"videoQuality\": \"Качество видео\",\n\t\"audioFormat\": \"Формат аудиофайла\",\n\t\"outputSuffix\": \"Суффикс выходного файла\",\n\t\"outputInSameFolder\": \"Сохранять в ту же папку\",\n\t\"selectCustomFolder\": \"Выбрать папку\",\n\t\"startCompression\": \"Начать сжатие\",\n\t\"cancel\": \"Отмена\",\n\t\"errorClickForDetails\": \"Ошибка! Нажмите для подробностей\",\n\t\"homebrewYtDlpWarning\": \"Сначала необходимо установить yt-dlp через Homebrew\",\n\t\"openHomebrew\": \"Открыть Homebrew\",\n\t\"downloadHistory\": \"История загрузок\",\n\t\"close\": \"Закрыть\",\n\t\"searchByTitleOrUrl\": \"Поиск по названию или URL...\",\n\t\"allFormats\": \"Все форматы\",\n\t\"exportAsJson\": \"Экспортировать в JSON\",\n\t\"exportAsCsv\": \"Экспортировать в CSV\",\n\t\"clearAllHistory\": \"Очистить всю историю\",\n\t\"noDownloadsYet\": \"Загрузок пока нет\",\n\t\"downloadHistoryPlaceholder\": \"Здесь появится история загрузок\",\n\t\"format\": \"Формат\",\n\t\"size\": \"Размер\",\n\t\"date\": \"Дата\",\n\t\"duration\": \"Длительность\",\n\t\"copyUrl\": \"Копировать ссылку\",\n\t\"open\": \"Открыть\",\n\t\"delete\": \"Удалить\",\n\t\"totalDownloads\": \"Всего загрузок\",\n\t\"totalSize\": \"Общий размер\",\n\t\"mostCommonFormat\": \"Наиболее частый формат\",\n\t\"urlCopiedToClipboard\": \"URL скопирован в буфер обмена!\",\n\t\"confirmDeleteHistoryItem\": \"Вы уверены, что хотите удалить этот элемент из истории?\",\n\t\"confirmClearAllHistory\": \"Вы уверены, что хотите удалить всю историю загрузок? Это действие необратимо!\",\n\t\"fileDoesNotExist\": \"Файл больше не существует\",\n\t\"updatingYtdlp\": \"Обновление yt-dlp\",\n\t\"updatedYtdlp\": \"yt-dlp обновлён\",\n\t\"ytDlpUpdateRequired\": \"Если yt-dlp обновляется, дождитесь завершения. Если вы установили yt-dlp самостоятельно, обновите его.\",\n\t\"failedToDeleteHistoryItem\": \"Не удалось удалить элемент истории\",\n\t\"customArgsTxt\": \"Задать параметры yt-dlp.\",\n\t\"learnMore\": \"Подробнее\",\n\t\"updateError\": \"Во время обновления произошла ошибка\",\n\t\"unableToAccessDir\": \"Нет доступа к папке\",\n\t\"downloadingUpdate\": \"Загрузка обновления\"\n}"
  },
  {
    "path": "translations/tr-TR.json",
    "content": "{\n\t\"preferences\": \"Ayarlar\",\n\t\"about\": \"Hakkında\",\n\t\"downloadLocation\": \"İndirme dizini\",\n\t\"currentDownloadLocation\": \"Mevcut indirme dizini - \",\n\t\"enableTransparentDarkMode\": \"Koyu tema için saydamlığı aktif edin (sadece Linux için, yeniden başlatma gerekir)\",\n\t\"downloadingNecessaryFilesWait\": \"Lütfen bekleyin, dosyalar indiriliyor\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Ses\",\n\t\"title\": \"Başlık \",\n\t\"selectFormat\": \"Format seçin \",\n\t\"download\": \"İndir\",\n\t\"selectDownloadLocation\": \"İndirme dizinini seç\",\n\t\"moreOptions\": \"Daha fazla ayar\",\n\t\"start\": \"Başlangıç\",\n\t\"selectLanguageRelaunch\": \"Dil seçin (Yeniden başlatma gerekir)\",\n\t\"downloadTimeRange\": \"Belirli bir zaman aralığını indir\",\n\t\"end\": \"Bitiş\",\n\t\"timeRangeStartEmptyHint\": \"Eğer boş bırakılırsa, başlangıçtan başlayacaktır\",\n\t\"timeRangeEndEmptyHint\": \"Eğer boş bırakılırsa, sonuna kadar inecektir\",\n\t\"homepage\": \"Ana sayfa\",\n\t\"aboutAppDescription\": \"Node.js ve Electron ile yapılmış ücretsiz ve açık kaynak bir uygulamadır. yt-dlp indirme işlemi için kullanılır\",\n\t\"sourceCodeAvailable\": \"Kaynak kodu mevcuttur \",\n\t\"here\": \"burada\",\n\t\"processing\": \"İşleniyor\",\n\t\"errorNetworkOrUrl\": \"Hata oluştu. İnternetinizi kontrol edin ve doğru bir bağlantı kullanın\",\n\t\"errorFailedFileDownload\": \"Dosyalar indirilemedi. Lütfen internetinizi kontrol edin ve tekrar deneyin\",\n\t\"tryAgain\": \"Tekrar deneyin\",\n\t\"unknownSize\": \"Bilinmeyen boyut\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Bilinmeyen kalite\",\n\t\"downloading\": \"İndiriliyor...\",\n\t\"errorHoverForDetails\": \"Hata oluştu. Detayları görmek için üzerine gelin\",\n\t\"fileSavedSuccessfully\": \"Dosya başarıyla kaydedildi\",\n\t\"fileSavedClickToOpen\": \"Dosya kaydedildi. Açmak için tıklayın\",\n\t\"preparing\": \"Hazırlanıyor...\",\n\t\"progress\": \"Süreç\",\n\t\"speed\": \"Hız\",\n\t\"quality\": \"Kalite\",\n\t\"restartApp\": \"Uygulamayı yeniden başlat\",\n\t\"subtitles\": \"Altyazılar\",\n\t\"downloadSubtitlesAvailable\": \"Altyazılar mevcut ise indir\",\n\t\"downloadSubtitlesAuto\": \"Otomatik oluşturulan altyazıyı indir\",\n\t\"extractAudioFromVideo\": \"Videodan sesi çıkart\",\n\t\"extract\": \"Çıkart\",\n\t\"downloadingNecessaryFiles\": \"Dosyalar indiriliyor\",\n\t\"qualityLow\": \"düşük\",\n\t\"qualityMedium\": \"orta\",\n\t\"appDescription\": \"ytDownloader ile Youtube, Facebook, Instagram, Tiktok ve Twitter gibi yüzlerce siteden videolar ve sesler indirebilirsiniz\",\n\t\"pasteText\": \"Klip tahtasından video bağlantısını yapıştırmak için tıklayın\",\n\t\"pastePlaylistLinkTooltip\": \"Klip tahtasından oynatma listesi bağlantısını yapıştırmak için tıklayın\",\n\t\"link\": \"Link:\",\n\t\"downloadingPlaylist\": \"İndirilen oynatma listesi:\",\n\t\"downloadPlaylistButton\": \"Oynatma listesini indir\",\n\t\"playlistDownloaded\": \"Oynatma listesi indirildi\",\n\t\"cookiesWarning\": \"Bu seçenek kısıtlı içeriği indirmenize olanak sağlar. Çerezler bulunmuyorsa hata alırsınız\",\n\t\"selectBrowserForCookies\": \"Çerezlerin kullanılacağı tarayıcıyı seçin\",\n\t\"none\": \"Hiçbiri\",\n\t\"updateAvailableDownloadPrompt\": \"Yeni bir versiyon mevcut, indirmek ister misiniz?\",\n\t\"updateAvailablePrompt\": \"Yeni bir versiyon mevcut, güncellemek ister misiniz?\",\n\t\"update\": \"Güncelleme\",\n\t\"no\": \"Hayır\",\n\t\"installAndRestartPrompt\": \"Yüklendikten sonra yeniden başlatılsın mı?\",\n\t\"restart\": \"Yeniden başlat\",\n\t\"later\": \"Daha sonra\",\n\t\"extractAudio\": \"Sesi çıkart\",\n\t\"selectVideoFormat\": \"Video Formatını Seçin \",\n\t\"selectAudioFormat\": \"Ses Formatını Seçin \",\n\t\"maxActiveDownloads\": \"Maksimum aktif indirme sayısı\",\n\t\"preferredVideoQuality\": \"Tercih edilen video kalitesi\",\n\t\"preferredAudioFormat\": \"Tercih edilen ses formatı\",\n\t\"best\": \"En iyi\",\n\t\"fileSaved\": \"Dosya kaydedildi\",\n\t\"openDownloadFolder\": \"İndirme klasörünü açın\",\n\t\"path\": \"Dizin:\",\n\t\"selectConfigFile\": \"Konfigürasyon dosyasını seç\",\n\t\"useConfigFile\": \"Konfigürasyon dosyasını kullan\",\n\t\"playlistFilenameFormat\": \"Oynatma listesi için dosya adı\",\n\t\"playlistFolderNameFormat\": \"Oynatma listesi için klasör ismi\",\n\t\"resetToDefault\": \"Varsayılana sıfırla\",\n\t\"playlistRange\": \"Oynatma listesi aralığı\",\n\t\"thumbnail\": \"Küçük resim\",\n\t\"linkAdded\": \"Bağlantı eklendi\",\n\t\"downloadThumbnails\": \"Küçük Resimleri İndir\",\n\t\"saveVideoLinksToFile\": \"Video bağlantılarını bir dosyaya kaydet\",\n\t\"closeAppToTray\": \"Sistem tepsisine kapat\",\n\t\"useConfigFileCheckbox\": \"Konfigürasyon dosyası kullan\",\n\t\"openApp\": \"Uygulamayı aç\",\n\t\"pasteVideoLink\": \"Video bağlantısını yapıştırın\",\n\t\"quit\": \"Çıkış\",\n\t\"errorDetails\": \"Hata Ayrıntıları\",\n\t\"clickToCopy\": \"Kopyalamak için tıkla\",\n\t\"copiedText\": \"Kopyalanan metin\",\n\t\"qualityNormal\": \"Normal\",\n\t\"qualityGood\": \"İyi\",\n\t\"qualityBad\": \"Kötü\",\n\t\"qualityWorst\": \"En kötü\",\n\t\"selectQuality\": \"Kalite Seç\",\n\t\"disableAutoUpdates\": \"Otomatik güncellemeleri devre dışı bırak\",\n\t\"qualityUltraLow\": \"Çok düşük\",\n\t\"closeAppOnFinish\": \"İndirme bittiğinde uygulamayı kapat\",\n\t\"auto\": \"Otomatik\",\n\t\"theme\": \"Tema\",\n\t\"themeLight\": \"Açık\",\n\t\"themeDark\": \"Karanlık\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matris\",\n\t\"themeSolarizedDark\": \"Solarized koyu\",\n\t\"preferredVideoCodec\": \"Tercih edilen video kodeği\",\n\t\"showMoreFormatOptions\": \"Daha fazla format ayarı göster\",\n\t\"flatsealPermissionWarning\": \"Bunu kullanmak için uygulamaya ev dizininize erişme izni vermeniz gerekiyor. Flatseal kullanarak bunu yapabilirsiniz: 'filesystem=home' parametresini kullanın\",\n\t\"noAudio\": \"Ses Yok\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"İndirilenleri temizle\",\n\t\"compressor\": \"Sıkıştırıcı\",\n\t\"dragAndDropFiles\": \"Dosya(ları) sürükleyip bırak\",\n\t\"chooseFiles\": \"Dosya(ları) Seç\",\n\t\"noFilesSelected\": \"Hiçbir dosya seçilmedi\",\n\t\"videoFormat\": \"Video formatı\",\n\t\"videoEncoder\": \"Video Kodlayıcı\",\n\t\"compressionSpeed\": \"Sıkıştırma Hızı\",\n\t\"videoQuality\": \"Video Kalitesi\",\n\t\"audioFormat\": \"Ses Formatı\",\n\t\"outputSuffix\": \"Çıktı soneki\",\n\t\"outputInSameFolder\": \"Aynı klasörde çıktı\",\n\t\"selectCustomFolder\": \"Özel klasör seç\",\n\t\"startCompression\": \"Sıkıştırmayı Başlat\",\n\t\"cancel\": \"İptal\",\n\t\"errorClickForDetails\": \"Hata! Ayrıntılar için tıklayın\",\n\t\"homebrewYtDlpWarning\": \"Öncelikle Homebrew üzerinden yt-dlp uygulamasını indirmeniz gerekiyor\",\n\t\"openHomebrew\": \"Homebrew'u Aç\",\n\t\"downloadHistory\": \"İndirme Geçmişi\",\n\t\"close\": \"Kapat\",\n\t\"searchByTitleOrUrl\": \"Başlığa veya URL'ye göre ara...\",\n\t\"allFormats\": \"Tüm Formatlar\",\n\t\"exportAsJson\": \"JSON olarak dışa aktar\",\n\t\"exportAsCsv\": \"CSV olarak dışa aktar\",\n\t\"clearAllHistory\": \"Tüm Geçmişi Temizle\",\n\t\"noDownloadsYet\": \"Henüz İndirme Yok\",\n\t\"downloadHistoryPlaceholder\": \"İndirme geçmişiniz burada görünecek\",\n\t\"format\": \"Format\",\n\t\"size\": \"Boyut\",\n\t\"date\": \"Tarih\",\n\t\"duration\": \"Süre\",\n\t\"copyUrl\": \"URL'yi Kopyala\",\n\t\"open\": \"Aç\",\n\t\"delete\": \"Sil\",\n\t\"totalDownloads\": \"Toplam İndirme\",\n\t\"totalSize\": \"Toplam Boyut\",\n\t\"mostCommonFormat\": \"En Yaygın Format\",\n\t\"urlCopiedToClipboard\": \"URL panoya kopyalandı!\",\n\t\"confirmDeleteHistoryItem\": \"Bu öğeyi geçmişten silmek istediğinizden emin misiniz?\",\n\t\"confirmClearAllHistory\": \"Tüm indirme geçmişini temizlemek istediğinizden emin misiniz? Bu işlem geri alınamaz!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/uk-UA.json",
    "content": "{\n\t\"preferences\": \"Налаштування\",\n\t\"about\": \"Про застосунок\",\n\t\"downloadLocation\": \"Шлях завантаження\",\n\t\"currentDownloadLocation\": \"Поточне місце завантаження - \",\n\t\"enableTransparentDarkMode\": \"Увімкнути прозорий темний режим (доступно тільки на Linux, потребує перезапуску)\",\n\t\"downloadingNecessaryFilesWait\": \"Зачекайте, будь ласка, поки необхідні файли завантажуються\",\n\t\"video\": \"Відео\",\n\t\"audio\": \"Аудіо\",\n\t\"title\": \"Заголовок \",\n\t\"selectFormat\": \"Оберіть формат \",\n\t\"download\": \"Завантажити\",\n\t\"selectDownloadLocation\": \"Оберіть шлях для завантаження\",\n\t\"moreOptions\": \"Більше опцій\",\n\t\"start\": \"Початок\",\n\t\"selectLanguageRelaunch\": \"Оберіть мову (потребує перезапуску)\",\n\t\"downloadTimeRange\": \"Завантажити певний проміжок часу\",\n\t\"end\": \"Кінець\",\n\t\"timeRangeStartEmptyHint\": \"Якщо залишити порожнім, почнеться з початку\",\n\t\"timeRangeEndEmptyHint\": \"Якщо залишити порожнім, буде завантажено до кінця\",\n\t\"homepage\": \"На головну\",\n\t\"aboutAppDescription\": \"Це безкоштовний застосунок з відкритим кодом, створений на Node.js та Electron. Для завантаження використовується yt-dlp\",\n\t\"sourceCodeAvailable\": \"Вихідний код доступний \",\n\t\"here\": \"тут\",\n\t\"processing\": \"Обробка\",\n\t\"errorNetworkOrUrl\": \"Сталася помилка. Перевірте мережу та використовуйте правильну URL-адресу\",\n\t\"errorFailedFileDownload\": \"Не вдалося завантажити необхідні файли. Перевірте мережу та спробуйте ще раз\",\n\t\"tryAgain\": \"Спробувати ще\",\n\t\"unknownSize\": \"Невідомий розмір\",\n\t\"megabyte\": \"МБ\",\n\t\"unknownQuality\": \"Невідома якість\",\n\t\"downloading\": \"Завантаження...\",\n\t\"errorHoverForDetails\": \"Сталася помилка. Наведіть курсор, щоб побачити деталі\",\n\t\"fileSavedSuccessfully\": \"Файл успішно збережено\",\n\t\"fileSavedClickToOpen\": \"Файл збережено. Натисніть, щоб відкрити\",\n\t\"preparing\": \"Підготовка...\",\n\t\"progress\": \"Прогрес\",\n\t\"speed\": \"Швидкість\",\n\t\"quality\": \"Якість\",\n\t\"restartApp\": \"Перезапустити застосунок\",\n\t\"subtitles\": \"Субтитри\",\n\t\"downloadSubtitlesAvailable\": \"Завантажити субтитри, якщо вони є\",\n\t\"downloadSubtitlesAuto\": \"Завантажити автоматично створені субтитри\",\n\t\"extractAudioFromVideo\": \"Витягти аудіо з відео\",\n\t\"extract\": \"Витягти\",\n\t\"downloadingNecessaryFiles\": \"Завантаження необхідних файлів\",\n\t\"qualityLow\": \"низька\",\n\t\"qualityMedium\": \"середня\",\n\t\"appDescription\": \"ytDownloader дозволяє завантажувати відео та аудіо з сотень сайтів, таких як Youtube, Facebook, Instagram, Tiktok, Twitter тощо\",\n\t\"pasteText\": \"Натисніть, щоб вставити посилання на відео з буфера обміну\",\n\t\"pastePlaylistLinkTooltip\": \"Натисніть, щоб вставити посилання на плейлист з буфера обміну\",\n\t\"link\": \"Посилання:\",\n\t\"downloadingPlaylist\": \"Завантаження плейлиста:\",\n\t\"downloadPlaylistButton\": \"Завантажити плейлист\",\n\t\"playlistDownloaded\": \"Плейлист завантажено\",\n\t\"cookiesWarning\": \"Ця опція дозволяє завантажувати обмежений контент. Ви отримаєте помилки, якщо cookies відсутні\",\n\t\"selectBrowserForCookies\": \"Виберіть браузер для використання cookies\",\n\t\"none\": \"Немає\",\n\t\"updateAvailableDownloadPrompt\": \"Доступна нова версія, бажаєте завантажити її?\",\n\t\"updateAvailablePrompt\": \"Доступна нова версія, бажаєте оновити?\",\n\t\"update\": \"Оновити\",\n\t\"no\": \"Ні\",\n\t\"installAndRestartPrompt\": \"Встановити та перезапустити зараз?\",\n\t\"restart\": \"Перезапустити\",\n\t\"later\": \"Пізніше\",\n\t\"extractAudio\": \"Витягти аудіо\",\n\t\"selectVideoFormat\": \"Вибрати формат відео \",\n\t\"selectAudioFormat\": \"Вибрати формат аудіо \",\n\t\"maxActiveDownloads\": \"Максимальна кількість активних завантажень\",\n\t\"preferredVideoQuality\": \"Бажана якість відео\",\n\t\"preferredAudioFormat\": \"Бажаний формат аудіо\",\n\t\"best\": \"Найкраща\",\n\t\"fileSaved\": \"Файл збережено.\",\n\t\"openDownloadFolder\": \"Відкрити папку завантажень\",\n\t\"path\": \"Шлях:\",\n\t\"selectConfigFile\": \"Вибрати файл конфігурації\",\n\t\"useConfigFile\": \"Використовувати файл конфігурації\",\n\t\"playlistFilenameFormat\": \"Формат назв файлів для плейлистів\",\n\t\"playlistFolderNameFormat\": \"Формат назв папок для плейлистів\",\n\t\"resetToDefault\": \"Скинути до стандартних\",\n\t\"playlistRange\": \"Діапазон плейлиста\",\n\t\"thumbnail\": \"Мініатюра\",\n\t\"linkAdded\": \"Посилання додано\",\n\t\"downloadThumbnails\": \"Завантажити мініатюри\",\n\t\"saveVideoLinksToFile\": \"Зберегти посилання на відео у файл\",\n\t\"closeAppToTray\": \"Закрити програму в системний трей\",\n\t\"useConfigFileCheckbox\": \"Використовувати конфігурацію\",\n\t\"openApp\": \"Відкрити застосунок\",\n\t\"pasteVideoLink\": \"Вставити посилання на відео\",\n\t\"quit\": \"Вийти\",\n\t\"errorDetails\": \"Деталі помилки\",\n\t\"clickToCopy\": \"Натисніть, щоб скопіювати\",\n\t\"copiedText\": \"Текст скопійовано\",\n\t\"qualityNormal\": \"Звичайна\",\n\t\"qualityGood\": \"Добра\",\n\t\"qualityBad\": \"Погана\",\n\t\"qualityWorst\": \"Найгірша\",\n\t\"selectQuality\": \"Виберіть якість\",\n\t\"disableAutoUpdates\": \"Вимкнути автооновлення\",\n\t\"qualityUltraLow\": \"дуже низька\",\n\t\"closeAppOnFinish\": \"Закрити застосунок після завершення завантаження\",\n\t\"auto\": \"Авто\",\n\t\"theme\": \"Тема\",\n\t\"themeLight\": \"Світла\",\n\t\"themeDark\": \"Темна\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"Бажаний відеокодек\",\n\t\"showMoreFormatOptions\": \"Показати більше опцій формату\",\n\t\"flatsealPermissionWarning\": \"Потрібно надати програмі дозвіл на доступ до домашнього каталогу. Це можна зробити за допомогою Flatseal, увімкнувши дозвіл з текстом 'filesystem=home'\",\n\t\"noAudio\": \"Без аудіо\",\n\t\"proxy\": \"Проксі\",\n\t\"clearDownloads\": \"Очистити завантаження\",\n\t\"compressor\": \"Стиснення\",\n\t\"dragAndDropFiles\": \"Перетягніть файли\",\n\t\"chooseFiles\": \"Вибрати файли\",\n\t\"noFilesSelected\": \"Файли не вибрано\",\n\t\"videoFormat\": \"Формат відео\",\n\t\"videoEncoder\": \"Відеокодер\",\n\t\"compressionSpeed\": \"Швидкість стиснення\",\n\t\"videoQuality\": \"Якість відео\",\n\t\"audioFormat\": \"Формат аудіо\",\n\t\"outputSuffix\": \"Суфікс на виході\",\n\t\"outputInSameFolder\": \"Вивести в ту саму папку\",\n\t\"selectCustomFolder\": \"Вибрати іншу папку\",\n\t\"startCompression\": \"Почати стиснення\",\n\t\"cancel\": \"Скасувати\",\n\t\"errorClickForDetails\": \"Помилка! Натисніть для деталей\",\n\t\"homebrewYtDlpWarning\": \"Спочатку потрібно завантажити yt-dlp через Homebrew\",\n\t\"openHomebrew\": \"Відкрити Homebrew\",\n\t\"downloadHistory\": \"Історія завантажень\",\n\t\"close\": \"Закрити\",\n\t\"searchByTitleOrUrl\": \"Пошук за назвою або URL...\",\n\t\"allFormats\": \"Всі формати\",\n\t\"exportAsJson\": \"Експортувати як JSON\",\n\t\"exportAsCsv\": \"Експортувати як CSV\",\n\t\"clearAllHistory\": \"Очистити всю історію\",\n\t\"noDownloadsYet\": \"Завантажень ще немає\",\n\t\"downloadHistoryPlaceholder\": \"Ваша історія завантажень з'явиться тут\",\n\t\"format\": \"Формат\",\n\t\"size\": \"Розмір\",\n\t\"date\": \"Дата\",\n\t\"duration\": \"Тривалість\",\n\t\"copyUrl\": \"Копіювати URL\",\n\t\"open\": \"Відкрити\",\n\t\"delete\": \"Видалити\",\n\t\"totalDownloads\": \"Усього завантажень\",\n\t\"totalSize\": \"Загальний розмір\",\n\t\"mostCommonFormat\": \"Найпоширеніший формат\",\n\t\"urlCopiedToClipboard\": \"URL скопійовано в буфер обміну!\",\n\t\"confirmDeleteHistoryItem\": \"Ви впевнені, що хочете видалити цей елемент з історії?\",\n\t\"confirmClearAllHistory\": \"Ви впевнені, що хочете очистити всю історію завантажень? Цю дію не можна скасувати!\",\n\t\"fileDoesNotExist\": \"Файл більше не існує\",\n\t\"updatingYtdlp\": \"Оновлення yt-dlp\",\n\t\"updatedYtdlp\": \"Оновлено yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"Якщо yt-dlp оновлюється, зачекайте поки оновлення завершиться. Якщо встановлено yt-dlp самостійно, будь ласка, оновіть його.\",\n\t\"failedToDeleteHistoryItem\": \"Не вдалося видалити елемент історії\",\n\t\"customArgsTxt\": \"Встановити користувацькі параметри yt-dlp.\",\n\t\"learnMore\": \"Докладніше\",\n\t\"updateError\": \"Сталася помилка під час процесу оновлення\",\n\t\"unableToAccessDir\": \"Програма не має доступу до папки\",\n\t\"downloadingUpdate\": \"Завантаження оновлення\"\n}\n"
  },
  {
    "path": "translations/vi-VN.json",
    "content": "{\n\t\"preferences\": \"Tùy chỉnh\",\n\t\"about\": \"Giới thiệu\",\n\t\"downloadLocation\": \"Vị trí tải xuống\",\n\t\"currentDownloadLocation\": \"Vị trí tải về hiện tại\",\n\t\"enableTransparentDarkMode\": \"Bật chế độ tối trong suốt (chỉ Linux, cần khởi động lại)\",\n\t\"downloadingNecessaryFilesWait\": \"Vui lòng chờ, các tập tin cần thiết đang được tải xuống\",\n\t\"video\": \"Video\",\n\t\"audio\": \"Âm thanh\",\n\t\"title\": \"Tiêu đề \",\n\t\"selectFormat\": \"Định dạng \",\n\t\"download\": \"Tải xuống\",\n\t\"selectDownloadLocation\": \"Chọn nơi tải xuống\",\n\t\"moreOptions\": \"Các tuỳ chọn khác\",\n\t\"start\": \"Bắt đầu\",\n\t\"selectLanguageRelaunch\": \"Lựa chọn ngôn ngữ (Cần khởi động lại)\",\n\t\"downloadTimeRange\": \"Tải xuống với khoảng thời gian tùy chỉnh\",\n\t\"end\": \"Đến\",\n\t\"timeRangeStartEmptyHint\": \"Để trống sẽ bắt đầu từ đầu\",\n\t\"timeRangeEndEmptyHint\": \"Để trống sẽ tải đến hết\",\n\t\"homepage\": \"Trang chủ\",\n\t\"aboutAppDescription\": \"Đây là ứng dụng mã nguồn mở và miễn phí, được xây dựng dựa trên Node.js và Electron. yt-dlp được sử dụng để tải xuống các file(s)\",\n\t\"sourceCodeAvailable\": \"Mã nguồn có sẵn \",\n\t\"here\": \"tại đây\",\n\t\"processing\": \"Đang xử lý\",\n\t\"errorNetworkOrUrl\": \"Một số lỗi đã xảy ra. Vui lòng kiểm tra lại kết nối Internet của bạn và URL\",\n\t\"errorFailedFileDownload\": \"Không thể tải xuống các tệp cần thiết. Vui lòng kiểm tra lại kết nối Internet của bạn và thử lại\",\n\t\"tryAgain\": \"Thử lại\",\n\t\"unknownSize\": \"Kích thước không xác định\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"Chất lượng không rõ\",\n\t\"downloading\": \"Đang tải...\",\n\t\"errorHoverForDetails\": \"Một số lỗi đã xảy ra. Di chuột để xem chi tiết\",\n\t\"fileSavedSuccessfully\": \"Tải xuống thành công\",\n\t\"fileSavedClickToOpen\": \"Đã lưu. Nhấn vào đây để mở\",\n\t\"preparing\": \"Đang chuẩn bị...\",\n\t\"progress\": \"Tiến trình\",\n\t\"speed\": \"Tốc độ\",\n\t\"quality\": \"Chất lượng tải xuống\",\n\t\"restartApp\": \"Khởi động lại\",\n\t\"subtitles\": \"Phụ đề\",\n\t\"downloadSubtitlesAvailable\": \"Tải xuống phụ đề nếu có\",\n\t\"downloadSubtitlesAuto\": \"Tải xuống phụ đề được tạo tự động\",\n\t\"extractAudioFromVideo\": \"Tách âm thanh từ video\",\n\t\"extract\": \"Tách\",\n\t\"downloadingNecessaryFiles\": \"Đang tải các tập tin cần thiết\",\n\t\"qualityLow\": \"Thấp\",\n\t\"qualityMedium\": \"Trung bình\",\n\t\"appDescription\": \"ytDownloader hỗ trợ tải video và âm thanh từ hàng trăm website như Youtube, Facebook, Instagram, Tiktok, Twitter và hơn thế nữa\",\n\t\"pasteText\": \"Nhấn để dán liên kết video từ clipboard\",\n\t\"pastePlaylistLinkTooltip\": \"Nhấn để dán liên kết danh sách phát từ clipboard\",\n\t\"link\": \"URL video/playlist cần tải:\",\n\t\"downloadingPlaylist\": \"Đang tải xuống danh sách phát:\",\n\t\"downloadPlaylistButton\": \"Tải xuống danh sách phát\",\n\t\"playlistDownloaded\": \"Đã tải xuống danh sách phát\",\n\t\"cookiesWarning\": \"Tùy chọn này cho phép bạn tải xuống nội dung bị hạn chế (Yêu cầu có cookies)\",\n\t\"selectBrowserForCookies\": \"Chọn trình duyệt để sử dụng cookie\",\n\t\"none\": \"Trống\",\n\t\"updateAvailableDownloadPrompt\": \"Đã có phiên bản mới, bạn có muốn tải về không?\",\n\t\"updateAvailablePrompt\": \"Đã có phiên bản mới, bạn có muốn cập nhật không?\",\n\t\"update\": \"Cập nhật\",\n\t\"no\": \"Không\",\n\t\"installAndRestartPrompt\": \"Cài đặt và khởi động lại ngay?\",\n\t\"restart\": \"Khởi động lại\",\n\t\"later\": \"Để sau\",\n\t\"extractAudio\": \"Tách âm thanh\",\n\t\"selectVideoFormat\": \"Chọn định dạng video\",\n\t\"selectAudioFormat\": \"Chọn định dạng âm thanh\",\n\t\"maxActiveDownloads\": \"Số lượt tải xuống tối đa\",\n\t\"preferredVideoQuality\": \"Chất lượng video ưu tiên\",\n\t\"preferredAudioFormat\": \"Định dạng âm thanh ưu tiên\",\n\t\"best\": \"Tốt nhất\",\n\t\"fileSaved\": \"Đã lưu tập tin.\",\n\t\"openDownloadFolder\": \"Mở thư mục tải xuống\",\n\t\"path\": \"Đường dẫn:\",\n\t\"selectConfigFile\": \"Chọn tập tin cấu hình\",\n\t\"useConfigFile\": \"Sử dụng tập tin cấu hình\",\n\t\"playlistFilenameFormat\": \"Định dạng tên tập tin cho danh sách phát\",\n\t\"playlistFolderNameFormat\": \"Định dạng tên thư mục cho danh sách phát\",\n\t\"resetToDefault\": \"Đặt lại về mặc định\",\n\t\"playlistRange\": \"Vùng danh sách phát\",\n\t\"thumbnail\": \"Ảnh thu nhỏ\",\n\t\"linkAdded\": \"Liên kết đã thêm\",\n\t\"downloadThumbnails\": \"Tải ảnh thu nhỏ\",\n\t\"saveVideoLinksToFile\": \"Lưu đường dẫn video vào tệp tin\",\n\t\"closeAppToTray\": \"Thu nhỏ ứng dụng xuống khay hệ thống\",\n\t\"useConfigFileCheckbox\": \"Sử dụng tệp tin cấu hình\",\n\t\"openApp\": \"Mở ứng dụng\",\n\t\"pasteVideoLink\": \"Dán link video\",\n\t\"quit\": \"Thoát\",\n\t\"errorDetails\": \"Chi tiết lỗi\",\n\t\"clickToCopy\": \"Nhấn để sao chép\",\n\t\"copiedText\": \"Đã sao chép văn bản\",\n\t\"qualityNormal\": \"Bình thường\",\n\t\"qualityGood\": \"Tốt\",\n\t\"qualityBad\": \"Tệ\",\n\t\"qualityWorst\": \"Tệ nhất\",\n\t\"selectQuality\": \"Chọn Chất lượng\",\n\t\"disableAutoUpdates\": \"Tắt tự động cập nhật\",\n\t\"qualityUltraLow\": \"rất thấp\",\n\t\"closeAppOnFinish\": \"Đóng ứng dụng khi quá trình tải xuống kết thúc\",\n\t\"auto\": \"Tự động\",\n\t\"theme\": \"Giao diện\",\n\t\"themeLight\": \"Sáng\",\n\t\"themeDark\": \"Tối\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"Codec video ưa thích\",\n\t\"showMoreFormatOptions\": \"Hiển thị nhiều tùy chọn định dạng hơn\",\n\t\"flatsealPermissionWarning\": \"Bạn cần cấp quyền truy cập thư mục chính cho ứng dụng để sử dụng tính năng này. Bạn có thể làm điều đó với Flatseal bằng cách bật quyền với văn bản 'filesystem=home'\",\n\t\"noAudio\": \"Không có Âm thanh\",\n\t\"proxy\": \"Proxy\",\n\t\"clearDownloads\": \"Xóa Tải xuống\",\n\t\"compressor\": \"Bộ nén\",\n\t\"dragAndDropFiles\": \"Kéo và thả tệp\",\n\t\"chooseFiles\": \"Chọn Tệp\",\n\t\"noFilesSelected\": \"Chưa có tệp nào được chọn\",\n\t\"videoFormat\": \"Định dạng Video\",\n\t\"videoEncoder\": \"Bộ mã hóa Video\",\n\t\"compressionSpeed\": \"Tốc độ nén\",\n\t\"videoQuality\": \"Chất lượng Video\",\n\t\"audioFormat\": \"Định dạng Âm thanh\",\n\t\"outputSuffix\": \"Hậu tố đầu ra\",\n\t\"outputInSameFolder\": \"Xuất trong cùng thư mục\",\n\t\"selectCustomFolder\": \"Chọn thư mục tùy chỉnh\",\n\t\"startCompression\": \"Bắt đầu nén\",\n\t\"cancel\": \"Hủy\",\n\t\"errorClickForDetails\": \"Lỗi! Nhấn để xem chi tiết\",\n\t\"homebrewYtDlpWarning\": \"Bạn cần tải yt-dlp từ homebrew trước\",\n\t\"openHomebrew\": \"Mở Homebrew\",\n\t\"downloadHistory\": \"Lịch sử Tải xuống\",\n\t\"close\": \"Đóng\",\n\t\"searchByTitleOrUrl\": \"Tìm kiếm theo tiêu đề hoặc URL...\",\n\t\"allFormats\": \"Tất cả Định dạng\",\n\t\"exportAsJson\": \"Xuất dưới dạng JSON\",\n\t\"exportAsCsv\": \"Xuất dưới dạng CSV\",\n\t\"clearAllHistory\": \"Xóa Toàn bộ Lịch sử\",\n\t\"noDownloadsYet\": \"Chưa có Tải xuống nào\",\n\t\"downloadHistoryPlaceholder\": \"Lịch sử tải xuống của bạn sẽ xuất hiện ở đây\",\n\t\"format\": \"Định dạng\",\n\t\"size\": \"Kích thước\",\n\t\"date\": \"Ngày\",\n\t\"duration\": \"Thời lượng\",\n\t\"copyUrl\": \"Sao chép URL\",\n\t\"open\": \"Mở\",\n\t\"delete\": \"Xóa\",\n\t\"totalDownloads\": \"Tổng số Tải xuống\",\n\t\"totalSize\": \"Tổng Kích thước\",\n\t\"mostCommonFormat\": \"Định dạng Phổ biến nhất\",\n\t\"urlCopiedToClipboard\": \"URL đã được sao chép vào clipboard!\",\n\t\"confirmDeleteHistoryItem\": \"Bạn có chắc chắn muốn xóa mục này khỏi lịch sử không?\",\n\t\"confirmClearAllHistory\": \"Bạn có chắc chắn muốn xóa toàn bộ lịch sử tải xuống không? Thao tác này không thể hoàn tác!\",\n\t\"fileDoesNotExist\": \"File does not exist anymore\",\n\t\"updatingYtdlp\": \"Updating yt-dlp\",\n\t\"updatedYtdlp\": \"Updated yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"If yt-dlp is updating, wait for the update to finish. If you have installed yt-dlp by yourself, please update it.\",\n\t\"failedToDeleteHistoryItem\": \"Failed to delete history item\",\n\t\"customArgsTxt\": \"Set custom yt-dlp options.\",\n\t\"learnMore\": \"Learn more\",\n\t\"updateError\": \"An error occurred during the update process\",\n\t\"unableToAccessDir\": \"The program cannot access that folder\",\n\t\"downloadingUpdate\": \"Downloading update\"\n}\n"
  },
  {
    "path": "translations/zh-CN.json",
    "content": "{\n\t\"preferences\": \"设置\",\n\t\"about\": \"關於\",\n\t\"downloadLocation\": \"下載位置\",\n\t\"currentDownloadLocation\": \"目前下載位置 - \",\n\t\"enableTransparentDarkMode\": \"启用透明深色模式 (仅限 Linux，需重新启动)\",\n\t\"downloadingNecessaryFilesWait\": \"请稍候，正在下载必要文件\",\n\t\"video\": \"影片\",\n\t\"audio\": \"音訊\",\n\t\"title\": \"標題 \",\n\t\"selectFormat\": \"選擇格式 \",\n\t\"download\": \"下載\",\n\t\"selectDownloadLocation\": \"選取下載位置\",\n\t\"moreOptions\": \"更多選項\",\n\t\"start\": \"開始\",\n\t\"selectLanguageRelaunch\": \"选择语言 (需重新启动)\",\n\t\"downloadTimeRange\": \"下載特定時間範圍\",\n\t\"end\": \"結束\",\n\t\"timeRangeStartEmptyHint\": \"若保留空白，将从头开始\",\n\t\"timeRangeEndEmptyHint\": \"若保留空白，将下载至末尾\",\n\t\"homepage\": \"首页\",\n\t\"aboutAppDescription\": \"这是一款基于 Node.js 和 Electron 构建的免费开源应用程序。使用 yt-dlp 进行下载\",\n\t\"sourceCodeAvailable\": \"源代码可于\",\n\t\"here\": \"此处获取\",\n\t\"processing\": \"處理中\",\n\t\"errorNetworkOrUrl\": \"发生错误。请检查您的网络并使用正确的网址\",\n\t\"errorFailedFileDownload\": \"下载必要文件失败。请检查您的网络并重试\",\n\t\"tryAgain\": \"再试一次\",\n\t\"unknownSize\": \"未知大小\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"未知品质\",\n\t\"downloading\": \"下載中...\",\n\t\"errorHoverForDetails\": \"发生错误。悬停以查看详细信息\",\n\t\"fileSavedSuccessfully\": \"檔案儲存成功\",\n\t\"fileSavedClickToOpen\": \"文件已保存。点击以打开\",\n\t\"preparing\": \"準備中...\",\n\t\"progress\": \"進度\",\n\t\"speed\": \"速度\",\n\t\"quality\": \"品质\",\n\t\"restartApp\": \"重新啟動應用程式\",\n\t\"subtitles\": \"字幕\",\n\t\"downloadSubtitlesAvailable\": \"若有字幕则下载\",\n\t\"downloadSubtitlesAuto\": \"下載自動產生的字幕\",\n\t\"extractAudioFromVideo\": \"从视频提取音频\",\n\t\"extract\": \"擷取\",\n\t\"downloadingNecessaryFiles\": \"正在下载必要文件\",\n\t\"qualityLow\": \"低\",\n\t\"qualityMedium\": \"中\",\n\t\"appDescription\": \"ytDownloader 可让您从 YouTube、Facebook、Instagram、Tiktok、Twitter 等数百个网站下载视频和音频\",\n\t\"pasteText\": \"点击以从剪贴板粘贴视频链接\",\n\t\"pastePlaylistLinkTooltip\": \"点击以从剪贴板粘贴播放列表链接\",\n\t\"link\": \"链接：\",\n\t\"downloadingPlaylist\": \"正在下载播放列表：\",\n\t\"downloadPlaylistButton\": \"下載播放清單\",\n\t\"playlistDownloaded\": \"播放清單已下載\",\n\t\"cookiesWarning\": \"此选项可让您下载受限制的内容。若没有 Cookies，将会发生错误\",\n\t\"selectBrowserForCookies\": \"选择要使用 Cookies 的浏览器\",\n\t\"none\": \"無\",\n\t\"updateAvailableDownloadPrompt\": \"有可用的新版本，您要下载吗？\",\n\t\"updateAvailablePrompt\": \"有可用的新版本，您要更新吗？\",\n\t\"update\": \"更新\",\n\t\"no\": \"否\",\n\t\"installAndRestartPrompt\": \"立即安装并重新启动？\",\n\t\"restart\": \"重新啟動\",\n\t\"later\": \"稍後\",\n\t\"extractAudio\": \"擷取音訊\",\n\t\"selectVideoFormat\": \"選擇影片格式 \",\n\t\"selectAudioFormat\": \"選擇音訊格式 \",\n\t\"maxActiveDownloads\": \"最大同时下载数\",\n\t\"preferredVideoQuality\": \"偏好视频画质\",\n\t\"preferredAudioFormat\": \"偏好音频格式\",\n\t\"best\": \"最佳\",\n\t\"fileSaved\": \"文件已保存。\",\n\t\"openDownloadFolder\": \"開啟下載資料夾\",\n\t\"path\": \"路径：\",\n\t\"selectConfigFile\": \"選擇設定檔\",\n\t\"useConfigFile\": \"使用設定檔\",\n\t\"playlistFilenameFormat\": \"播放清單的檔案名稱格式\",\n\t\"playlistFolderNameFormat\": \"播放列表的文件夹名称格式\",\n\t\"resetToDefault\": \"重设为默认值\",\n\t\"playlistRange\": \"播放清單範圍\",\n\t\"thumbnail\": \"縮圖\",\n\t\"linkAdded\": \"已添加链接\",\n\t\"downloadThumbnails\": \"下載縮圖\",\n\t\"saveVideoLinksToFile\": \"将视频链接保存至文件\",\n\t\"closeAppToTray\": \"关闭应用程序到系统托盘\",\n\t\"useConfigFileCheckbox\": \"使用設定檔\",\n\t\"openApp\": \"打开应用程序\",\n\t\"pasteVideoLink\": \"貼上影片連結\",\n\t\"quit\": \"離開\",\n\t\"errorDetails\": \"错误详细信息\",\n\t\"clickToCopy\": \"点击以复制\",\n\t\"copiedText\": \"已複製文字\",\n\t\"qualityNormal\": \"一般\",\n\t\"qualityGood\": \"良好\",\n\t\"qualityBad\": \"差\",\n\t\"qualityWorst\": \"最差\",\n\t\"selectQuality\": \"选择品质\",\n\t\"disableAutoUpdates\": \"停用自動更新\",\n\t\"qualityUltraLow\": \"超低\",\n\t\"closeAppOnFinish\": \"下載完成後關閉應用程式\",\n\t\"auto\": \"自動\",\n\t\"theme\": \"主題\",\n\t\"themeLight\": \"亮色\",\n\t\"themeDark\": \"暗色\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"Solarized Dark\",\n\t\"preferredVideoCodec\": \"偏好视频编码器\",\n\t\"showMoreFormatOptions\": \"顯示更多格式選項\",\n\t\"flatsealPermissionWarning\": \"您需要授予应用程序访问家目录的权限才能使用此功能。您可以使用 Flatseal 并通过 'filesystem=home' 文本来启用权限\",\n\t\"noAudio\": \"無音訊\",\n\t\"proxy\": \"代理\",\n\t\"clearDownloads\": \"清除下载项目\",\n\t\"compressor\": \"壓縮器\",\n\t\"dragAndDropFiles\": \"拖放文件\",\n\t\"chooseFiles\": \"选择文件\",\n\t\"noFilesSelected\": \"未选择任何文件\",\n\t\"videoFormat\": \"影片格式\",\n\t\"videoEncoder\": \"視訊編碼器\",\n\t\"compressionSpeed\": \"壓縮速度\",\n\t\"videoQuality\": \"影片畫質\",\n\t\"audioFormat\": \"音訊格式\",\n\t\"outputSuffix\": \"輸出後綴\",\n\t\"outputInSameFolder\": \"输出至相同文件夹\",\n\t\"selectCustomFolder\": \"選擇自訂資料夾\",\n\t\"startCompression\": \"開始壓縮\",\n\t\"cancel\": \"取消\",\n\t\"errorClickForDetails\": \"错误！点击查看详细信息\",\n\t\"homebrewYtDlpWarning\": \"您需要先通过 Homebrew 下载 yt-dlp\",\n\t\"openHomebrew\": \"打开 Homebrew\",\n\t\"downloadHistory\": \"下载记录\",\n\t\"close\": \"关闭\",\n\t\"searchByTitleOrUrl\": \"依标题或网址搜索...\",\n\t\"allFormats\": \"所有格式\",\n\t\"exportAsJson\": \"导出为 JSON\",\n\t\"exportAsCsv\": \"导出为 CSV\",\n\t\"clearAllHistory\": \"清除所有记录\",\n\t\"noDownloadsYet\": \"尚无下载\",\n\t\"downloadHistoryPlaceholder\": \"您的下载记录将显示在此处\",\n\t\"format\": \"格式\",\n\t\"size\": \"大小\",\n\t\"date\": \"日期\",\n\t\"duration\": \"时长\",\n\t\"copyUrl\": \"复制网址\",\n\t\"open\": \"打开\",\n\t\"delete\": \"删除\",\n\t\"totalDownloads\": \"总下载数\",\n\t\"totalSize\": \"总大小\",\n\t\"mostCommonFormat\": \"最常用格式\",\n\t\"urlCopiedToClipboard\": \"网址已复制到剪贴板！\",\n\t\"confirmDeleteHistoryItem\": \"您确定要从记录中删除此项目吗？\",\n\t\"confirmClearAllHistory\": \"您确定要清除所有下载记录吗？此操作无法撤销！\",\n\t\"fileDoesNotExist\": \"该文件已不存在\",\n\t\"updatingYtdlp\": \"更新 yt-dlp\",\n\t\"updatedYtdlp\": \"更新的yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"如果 yt-dlp 正在更新，请等待更新完成。如果您是自行安装的 yt-dlp，请手动更新它。\",\n\t\"failedToDeleteHistoryItem\": \"删除历史记录项失败\",\n\t\"customArgsTxt\": \"设置自定义yt-dlp选项。\",\n\t\"learnMore\": \"了解更多\",\n\t\"updateError\": \"更新过程中发生错误\",\n\t\"unableToAccessDir\": \"该程序无法访问该文件夹\",\n\t\"downloadingUpdate\": \"下载更新\"\n}\n"
  },
  {
    "path": "translations/zh-TW.json",
    "content": "{\n\t\"preferences\": \"設定\",\n\t\"about\": \"關於\",\n\t\"downloadLocation\": \"下載位置\",\n\t\"currentDownloadLocation\": \"目前下載位置 - \",\n\t\"enableTransparentDarkMode\": \"啟用透明暗黑模式 (僅限 Linux，需重新啟動)\",\n\t\"downloadingNecessaryFilesWait\": \"請稍候，正在下載必要檔案\",\n\t\"video\": \"影片\",\n\t\"audio\": \"音訊\",\n\t\"title\": \"標題 \",\n\t\"selectFormat\": \"選擇格式 \",\n\t\"download\": \"下載\",\n\t\"selectDownloadLocation\": \"選取下載位置\",\n\t\"moreOptions\": \"更多選項\",\n\t\"start\": \"開始\",\n\t\"selectLanguageRelaunch\": \"選擇語言 (需重新啟動)\",\n\t\"downloadTimeRange\": \"下載特定時間範圍\",\n\t\"end\": \"結束\",\n\t\"timeRangeStartEmptyHint\": \"若保留空白，將從頭開始\",\n\t\"timeRangeEndEmptyHint\": \"若保留空白，將下載至結尾\",\n\t\"homepage\": \"首頁\",\n\t\"aboutAppDescription\": \"這是一款基於 Node.js 和 Electron 建立的自由及開放原始碼應用程式。使用 yt-dlp 進行下載\",\n\t\"sourceCodeAvailable\": \"原始碼可於\",\n\t\"here\": \"此處取得\",\n\t\"processing\": \"處理中\",\n\t\"errorNetworkOrUrl\": \"發生錯誤。請檢查您的網路並使用正確的網址\",\n\t\"errorFailedFileDownload\": \"下載必要檔案失敗。請檢查您的網路並重試\",\n\t\"tryAgain\": \"再試一次\",\n\t\"unknownSize\": \"未知大小\",\n\t\"megabyte\": \"MB\",\n\t\"unknownQuality\": \"未知品質\",\n\t\"downloading\": \"下載中...\",\n\t\"errorHoverForDetails\": \"發生錯誤。懸停以查看詳細資訊\",\n\t\"fileSavedSuccessfully\": \"檔案儲存成功\",\n\t\"fileSavedClickToOpen\": \"檔案已儲存。點擊以開啟\",\n\t\"preparing\": \"準備中...\",\n\t\"progress\": \"進度\",\n\t\"speed\": \"速度\",\n\t\"quality\": \"品質\",\n\t\"restartApp\": \"重新啟動應用程式\",\n\t\"subtitles\": \"字幕\",\n\t\"downloadSubtitlesAvailable\": \"若有字幕則下載\",\n\t\"downloadSubtitlesAuto\": \"下載自動產生的字幕\",\n\t\"extractAudioFromVideo\": \"從影片擷取音訊\",\n\t\"extract\": \"擷取\",\n\t\"downloadingNecessaryFiles\": \"正在下載必要檔案\",\n\t\"qualityLow\": \"低\",\n\t\"qualityMedium\": \"中\",\n\t\"appDescription\": \"ytDownloader 讓您能從 YouTube、Facebook、Instagram、Tiktok、Twitter 等數百個網站下載影片和音訊\",\n\t\"pasteText\": \"點擊以從剪貼簿貼上影片連結\",\n\t\"pastePlaylistLinkTooltip\": \"點擊以從剪貼簿貼上播放清單連結\",\n\t\"link\": \"連結：\",\n\t\"downloadingPlaylist\": \"正在下載播放清單：\",\n\t\"downloadPlaylistButton\": \"下載播放清單\",\n\t\"playlistDownloaded\": \"播放清單已下載\",\n\t\"cookiesWarning\": \"此選項可讓您下載受限制的內容。若沒有 Cookies，將會發生錯誤\",\n\t\"selectBrowserForCookies\": \"選擇要從哪個瀏覽器使用 Cookies\",\n\t\"none\": \"無\",\n\t\"updateAvailableDownloadPrompt\": \"有可用的新版本，您要下載嗎？\",\n\t\"updateAvailablePrompt\": \"有可用的新版本，您要更新嗎？\",\n\t\"update\": \"更新\",\n\t\"no\": \"否\",\n\t\"installAndRestartPrompt\": \"立即安裝並重新啟動？\",\n\t\"restart\": \"重新啟動\",\n\t\"later\": \"稍後\",\n\t\"extractAudio\": \"擷取音訊\",\n\t\"selectVideoFormat\": \"選擇影片格式 \",\n\t\"selectAudioFormat\": \"選擇音訊格式 \",\n\t\"maxActiveDownloads\": \"最大同時下載數\",\n\t\"preferredVideoQuality\": \"偏好影片畫質\",\n\t\"preferredAudioFormat\": \"偏好音訊格式\",\n\t\"best\": \"最佳\",\n\t\"fileSaved\": \"檔案已儲存。\",\n\t\"openDownloadFolder\": \"開啟下載資料夾\",\n\t\"path\": \"路徑：\",\n\t\"selectConfigFile\": \"選擇設定檔\",\n\t\"useConfigFile\": \"使用設定檔\",\n\t\"playlistFilenameFormat\": \"播放清單的檔案名稱格式\",\n\t\"playlistFolderNameFormat\": \"播放清單的資料夾名稱格式\",\n\t\"resetToDefault\": \"重設為預設值\",\n\t\"playlistRange\": \"播放清單範圍\",\n\t\"thumbnail\": \"縮圖\",\n\t\"linkAdded\": \"已新增連結\",\n\t\"downloadThumbnails\": \"下載縮圖\",\n\t\"saveVideoLinksToFile\": \"將影片連結儲存至檔案\",\n\t\"closeAppToTray\": \"關閉應用程式至系統匣\",\n\t\"useConfigFileCheckbox\": \"使用設定檔\",\n\t\"openApp\": \"開啟應用程式\",\n\t\"pasteVideoLink\": \"貼上影片連結\",\n\t\"quit\": \"離開\",\n\t\"errorDetails\": \"錯誤詳細資訊\",\n\t\"clickToCopy\": \"點擊以複製\",\n\t\"copiedText\": \"已複製文字\",\n\t\"qualityNormal\": \"一般\",\n\t\"qualityGood\": \"良好\",\n\t\"qualityBad\": \"差\",\n\t\"qualityWorst\": \"最差\",\n\t\"selectQuality\": \"選擇品質\",\n\t\"disableAutoUpdates\": \"停用自動更新\",\n\t\"qualityUltraLow\": \"超低\",\n\t\"closeAppOnFinish\": \"下載完成後關閉應用程式\",\n\t\"auto\": \"自動\",\n\t\"theme\": \"主題\",\n\t\"themeLight\": \"亮色\",\n\t\"themeDark\": \"暗色\",\n\t\"themeFrappe\": \"Frappé\",\n\t\"themeOneDark\": \"One Dark\",\n\t\"themeMatrix\": \"Matrix\",\n\t\"themeSolarizedDark\": \"暗青色\",\n\t\"preferredVideoCodec\": \"偏好視訊編碼器\",\n\t\"showMoreFormatOptions\": \"顯示更多格式選項\",\n\t\"flatsealPermissionWarning\": \"您需要授予應用程式存取家目錄的權限才能使用此功能。您可以使用 Flatseal 並透過 'filesystem=home' 文字來啟用權限\",\n\t\"noAudio\": \"無音訊\",\n\t\"proxy\": \"代理\",\n\t\"clearDownloads\": \"清除下載項目\",\n\t\"compressor\": \"壓縮器\",\n\t\"dragAndDropFiles\": \"拖放檔案\",\n\t\"chooseFiles\": \"選擇檔案\",\n\t\"noFilesSelected\": \"未選擇任何檔案\",\n\t\"videoFormat\": \"影片格式\",\n\t\"videoEncoder\": \"視訊編碼器\",\n\t\"compressionSpeed\": \"壓縮速度\",\n\t\"videoQuality\": \"影片畫質\",\n\t\"audioFormat\": \"音訊格式\",\n\t\"outputSuffix\": \"輸出後綴\",\n\t\"outputInSameFolder\": \"輸出至相同資料夾\",\n\t\"selectCustomFolder\": \"選擇自訂資料夾\",\n\t\"startCompression\": \"開始壓縮\",\n\t\"cancel\": \"取消\",\n\t\"errorClickForDetails\": \"錯誤！點擊查看詳細資訊\",\n\t\"homebrewYtDlpWarning\": \"您需要先透過 Homebrew 下載 yt-dlp\",\n\t\"openHomebrew\": \"開啟 Homebrew\",\n\t\"downloadHistory\": \"下載紀錄\",\n\t\"close\": \"關閉\",\n\t\"searchByTitleOrUrl\": \"依標題或網址搜尋...\",\n\t\"allFormats\": \"所有格式\",\n\t\"exportAsJson\": \"匯出為 JSON\",\n\t\"exportAsCsv\": \"匯出為 CSV\",\n\t\"clearAllHistory\": \"清除所有紀錄\",\n\t\"noDownloadsYet\": \"尚無下載\",\n\t\"downloadHistoryPlaceholder\": \"您的下載紀錄將會顯示於此\",\n\t\"format\": \"格式\",\n\t\"size\": \"大小\",\n\t\"date\": \"日期\",\n\t\"duration\": \"時長\",\n\t\"copyUrl\": \"複製網址\",\n\t\"open\": \"開啟\",\n\t\"delete\": \"刪除\",\n\t\"totalDownloads\": \"總下載數\",\n\t\"totalSize\": \"總大小\",\n\t\"mostCommonFormat\": \"最常用格式\",\n\t\"urlCopiedToClipboard\": \"網址已複製到剪貼簿！\",\n\t\"confirmDeleteHistoryItem\": \"您確定要從紀錄中刪除此項目嗎？\",\n\t\"confirmClearAllHistory\": \"您確定要清除所有下載紀錄嗎？此操作無法復原！\",\n\t\"fileDoesNotExist\": \"檔案已不存在\",\n\t\"updatingYtdlp\": \"正在更新 yt-dlp\",\n\t\"updatedYtdlp\": \"已更新 yt-dlp\",\n\t\"ytDlpUpdateRequired\": \"如果 yt-dlp 正在更新，請等待更新完成。如果您是自行安裝 yt-dlp，請手動更新。\",\n\t\"failedToDeleteHistoryItem\": \"無法刪除歷史記錄項目\",\n\t\"customArgsTxt\": \"設定自訂 yt-dlp 選項。\",\n\t\"learnMore\": \"了解詳情\",\n\t\"updateError\": \"更新過程中發生錯誤\",\n\t\"unableToAccessDir\": \"程式無法存取該資料夾\",\n\t\"downloadingUpdate\": \"正在下載更新\"\n}\n"
  },
  {
    "path": "tsconfig.json",
    "content": "{\n    \"compilerOptions\": {\n        \"allowJs\": true,\n        \"checkJs\": true,\n        \"lib\": [\n            \"ES2021.String\",\n            \"DOM\",\n        ]\n    }\n}"
  },
  {
    "path": "windows.ps1",
    "content": "Invoke-WebRequest -Uri \"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/node.exe\" -OutFile node.exe\nInvoke-WebRequest -Uri \"https://github.com/aandrew-me/ffmpeg-builds/releases/download/v8/ffmpeg_win64.zip\" -OutFile ffmpeg_win64.zip\nExpand-Archive -Path ffmpeg_win64.zip -DestinationPath .\nRemove-Item -Path ffmpeg_win64.zip\nMove-Item -Path .\\ffmpeg_win64 -Destination .\\ffmpeg"
  },
  {
    "path": "ytdownloader.json",
    "content": "{\n\t\"homepage\": \"https://ytdn.netlify.app\",\n\t\"version\": \"3.20.2\",\n\t\"description\": \"A modern GUI App for downloading Videos and Audios from hundreds of sites\",\n\t\"license\": \"GPL-3\",\n\t\"url\": \"https://github.com/aandrew-me/ytDownloader/releases/download/v3.20.2/YTDownloader_Win.zip\",\n\t\"checkver\": {\n\t\t\"github\": \"https://github.com/aandrew-me/ytDownloader\"\n\t},\n\t\"bin\": [\"YTDownloader.exe\", [\"YTDownloader.exe\", \"ytdownloader\"]],\n\t\"shortcuts\": [[\"YTDownloader.exe\", \"YTDownloader\"]],\n\t\"architecture\": [\"x64\"],\n\t\"autoupdate\": {\n\t\t\"url\": \"https://github.com/aandrew-me/ytDownloader/releases/download/v$version/YTDownloader_Win.zip\",\n\t\t\"hash\": {\n\t\t\t\"url\": \"$url.sha256\"\n\t\t}\n\t}\n}\n"
  }
]