Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sq translation #503

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f45b0a9
Migration to Python 3
Jul 23, 2020
a494f0f
Update AUTHORS ad .gitignore
Jul 23, 2020
83965c6
Prepare for PyInstaller
Jul 23, 2020
4c8995d
Refactored setup.py, Internationalization, PyInstaller
Jul 25, 2020
dc74175
Update setup.py and locale es_CU youtube_dl_gui.po
Jul 25, 2020
4f1279e
Add polib, fix setup for Linux. Update requirements
Jul 28, 2020
4ba13b3
Update setup.py, requirements.txt
Jul 28, 2020
7186913
Update README.md
Jul 28, 2020
02bdfe9
Fix command for subprocess in Linux
Jul 30, 2020
55ce028
Update README.md
Jul 31, 2020
5c280b2
Add Notes to README.md
Jul 31, 2020
897b2c8
Reformat source code
Aug 3, 2020
0715907
Fix bug subprocess for Windows
Aug 3, 2020
cdb2ff0
Add Logging system using logging.handlers.RotatingFileHandler
Aug 5, 2020
3d08f90
Add workflow release and setup.sh
Aug 9, 2020
48c5c76
Install wget in Centos 7 for Docker Action
Aug 9, 2020
23a4aaf
Build Translations
Aug 10, 2020
f29d4a5
Update requirements
Aug 19, 2020
5334c18
Set stderr to PIPE
Aug 29, 2020
525d468
Fix infinite loop in PipeReader
dieterplex Dec 30, 2020
75798ba
Merge pull request #3 from dieterplex/fixpipereaderloop
oleksis Dec 30, 2020
5b9d43a
Update authors
Dec 31, 2020
8523e44
youtube-dlg v1.1.2
Dec 31, 2020
f7db2d1
Use unittest.mock ,fix and pass tests
oleksis Jan 18, 2021
baad01d
Add Tests workflow
oleksis Jan 18, 2021
62cd2de
Add Build Translations step to Tests workflow
oleksis Jan 18, 2021
7dc4603
Fix some bugs: Logs, Close Frame
oleksis Jan 21, 2021
4461688
Update README.md
oleksis Jan 21, 2021
f71de2d
Add Class Diagram UML in .pyns
oleksis Jan 25, 2021
4f95436
Update Class Diagram UML. Add UML .png
oleksis Jan 26, 2021
a36dc05
Close properly the file descriptors
oleksis Feb 6, 2021
1c22845
Change hashFiles SHA256 function on Github Actions
oleksis Mar 1, 2021
ca1838c
Create FUNDING.yml
oleksis Apr 6, 2021
6eea1bb
Adding sq translation
ujdhesa Apr 7, 2021
d915298
[skip ci] Update release workflow
oleksis Apr 8, 2021
ccf8d71
Merge branch 'master' into master
ujdhesa Apr 8, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: oleksis
custom: "https://www.buymeacoffee.com/oleksis"
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ All invalid issues will be rejected!!

- If your problem is a bug with **youtube-dl** or a request for new site support please report it [here](https://github.com/rg3/youtube-dl/issues)

- Make sure you are using the *latest* **youtube-dl-gui** version (Click the `Settings` icon and then `About` to view the current version)
- Make sure you are using the *latest* **youtube-dlg** version (Click the `Settings` icon and then `About` to view the current version)

- Make sure you are using the *latest* **youtube-dl** version (Click the `Settings` icon and then `Update` to update to the latest **youtube-dl** version)

- Make sure you searched the bugtracker for similar issues **including closed ones**

- Make sure to read the [FAQs](https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/docs/faqs.md) file
- Make sure to read the [FAQs](https://github.com/oleksis/youtube-dl-gui/blob/master/docs/faqs.md) file

- [ ] **I think** my problem is **NOT** with **youtube-dl**
- [ ] I've **verified** and **i assure** that I'm running youtube-dl-gui **0.4**
- [ ] I've **verified** and **i assure** that I'm running youtube-dlg **1.0.0**
- [ ] **I assure** that i am using the latest version of **youtube-dl**
- [ ] [Searched](https://github.com/MrS0m30n3/youtube-dl-gui/issues) bugtracker
- [ ] [Searched](https://github.com/oleksis/youtube-dl-gui/issues) bugtracker
- [ ] I've read the FAQs file

---
Expand All @@ -44,7 +44,7 @@ Please remove any sections between (---) if they are not related to your issue

#### If the problem occurs when downloading a URL please provide the full verbose output as follows:

1. Restart **youtube-dl-gui**
1. Restart **youtube-dlg**
1. Go to `Options > Extra` tab
2. Enable **Debug youtube-dl**
3. Go to `Options > Advanced` tab and **Clear** your log content
Expand Down Expand Up @@ -72,7 +72,7 @@ delete me and insert your log content here

### Feature request (request for a new functionality)

Please make sure that the requested feature is **NOT** already in the [TODO](https://github.com/MrS0m30n3/youtube-dl-gui/blob/master/TODO) list
Please make sure that the requested feature is **NOT** already in the [TODO](https://github.com/oleksis/youtube-dl-gui/blob/master/TODO) list

- [ ] I've **verified** and **i assure** that my requested feature is **NOT** in the TODO list

Expand Down
103 changes: 103 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: Upload Release Asset

on:
push:
tags:
- 'v*'

jobs:
build_windows_exe:
runs-on: windows-latest
outputs:
youtube-dlg_version: ${{ steps.dump_version.outputs.youtube-dlg_version }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
sha2_windows: ${{ steps.sha2_file.outputs.sha2_windows }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8.3
uses: actions/setup-python@v2
with:
python-version: '3.8.3'
architecture: 'x64'
- name: Install Requirements
run: pip install -r requirements.txt
- name: Build Translations
run: python setup.py build_trans
- name: Build PyInstaller
run: python setup.py pyinstaller
- name: Dump version
id: dump_version
shell: python
run: |
import json
import re

exec(compile(open('youtube_dl_gui/version.py').read(), 'youtube_dl_gui/version.py', 'exec'))
print('::set-output name=youtube-dlg_version::' + __version__)
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: youtube-dlg ${{ steps.dump_version.outputs.youtube-dlg_version }}
draft: false
prerelease: false
- name: Upload Executable youtube-dlg.exe
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/youtube-dlg.exe
asset_name: youtube-dlg.exe
asset_content_type: application/octet-stream
- name: Get SHA2-256SUMS for youtube-dlg.exe
id: sha2_file
run: echo "::set-output name=sha2_windows::$((Get-FileHash dist\youtube-dlg.exe -Algorithm SHA256).Hash.ToLower())"
build_ubuntu_bdist:
needs: build_windows_exe
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8.3
uses: actions/setup-python@v2
with:
python-version: '3.8.3'
architecture: 'x64'
- name: Build Binary using PyInstaller ManyLinux 2014 Docker Action
uses: oleksis/pyinstaller-manylinux@v1
with:
pyinstaller-params: "['-w', '-F', '--add-data=youtube_dl_gui/data:youtube_dl_gui/data', '--add-data=youtube_dl_gui/locale:youtube_dl_gui/locale', '--exclude-module=tests', '--name=youtube-dlg', 'youtube_dl_gui/__main__.py']"
- name: Upload Binary Distribution to Release
id: upload-release-binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.build_windows_exe.outputs.upload_url }}
asset_path: ./dist/youtube-dlg
asset_name: youtube-dlg
asset_content_type: application/octet-stream
- name: Get SHA2-256SUMS for youtube-dlg
id: sha2_file_binary
run: echo "::set-output name=sha2_linux::$(sha256sum dist/youtube-dlg | awk '{print $1}')"
- name: Make SHA2-256SUMS file
env:
SHA2_WINDOWS: ${{ needs.build_windows_exe.outputs.sha2_windows }}
SHA2_LINUX_BINARY: ${{ steps.sha2_file_binary.outputs.sha2_linux }}
run: |
echo "$SHA2_WINDOWS youtube-dlg.exe" > SHA2-256SUMS
echo "$SHA2_LINUX_BINARY youtube-dlg" >> SHA2-256SUMS
- name: Upload SHA2-256SUMS to Release
id: upload-release-sha2
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.build_windows_exe.outputs.upload_url }}
asset_path: ./SHA2-256SUMS
asset_name: SHA2-256SUMS
asset_content_type: text/plain
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Tests
on:
push:
branches:
- master

jobs:
tests:
name: Tests
runs-on: windows-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Set up Python 3.8.3
uses: actions/setup-python@v2
with:
python-version: '3.8.3'
architecture: 'x64'
- name: Configure pip caching
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install -r requirements.txt
- name: Build Translations
run: python setup.py build_trans
- name: Tests
run: |-
python -m unittest discover -s tests -v
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ MANIFEST

dist/
build/
env/

.idea
.vscode
*.spec
*.egg-info
6 changes: 6 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,11 @@ Swyter <swyterzone@gmail.com>
Sebastian Wagner <sebix@sebix.at>
saad snosi <fixall.dz@gmail.com>
cleitonme <cleitonme@gmail.com>
luigino <aloisio@gmx.com>
fat115 <fat115@framasoft.org>
Mitsuya Tsujikawa <mtujikawa@gmail.com>
pavreh <pavel-rehak@email.cz>
oleksis <oleksis.fraga@gmail.com>
d1t2 <dieterplex@gmail.com>

# Generated by update-authors.sh script
34 changes: 22 additions & 12 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,29 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

### Added
- ChangeLog
- 'flac' in available audio formats (#234)
- French translation (#203)
- Japanese translation (#226)
- Italian translation (#231)
- Czech translation (#233)
- Automatic locale detection during first run (#235)
- Man page (#259)
- Option to disable youtube-dl updates (#21)
- Man page
- Add locale (.mo) es_CU
- Add flagart module
- Add Flag art for Cuba
- Add Logging system using the Python 'logging' module
- Release for Python 3.8.3

### Fixed
- Bug in utils.convert_item function
- Bug in downloaders.YoutubeDLDownloader (#244)
- Imports for Internationalization with gettext
- Fix bug set wx.Locale for Python 3.8
- Fix bug subprocess for Windows ([WinError 6] Handler no valid)
- Set stderr to PIPE
- Do not interpret output [debug] as an error in the Logs
- Get all Logs except "ffmpeg version"
- Do not send messages to the GUI if the app does not exist (Destroy)
- Close properly the file descriptors

### Changed
- Update timeout from 20 to 10 seconds (#244)

- Migration to Python 3.*
- Update requirements.txt
- README.md
- Refactored setup.py
- Build the translation files (*.mo) using polib
- Build the binaries using PyInstaller. Fix path sep for each OS
- Build with updates disabled
- Set up for Windows/Linux
91 changes: 66 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,87 @@
[![Donations Badge](https://yourdonation.rocks/images/badge.svg)](https://mrs0m30n3.github.io/youtube-dl-gui/donate.html)

# youtube-dlG
A cross platform front-end GUI of the popular [youtube-dl](https://rg3.github.io/youtube-dl/) media downloader written in wxPython. [Supported sites](https://rg3.github.io/youtube-dl/supportedsites.html)

## Screenshots
![youtube-dl-gui main window](https://raw.githubusercontent.com/MrS0m30n3/youtube-dl-gui/gh-pages/images/ydlg_ui.gif)

## Requirements
* [Python 2.7.3+](https://www.python.org/downloads)
* [wxPython 3](https://wxpython.org/download.php)
* [TwoDict](https://pypi.python.org/pypi/twodict)
* [GNU gettext](https://www.gnu.org/software/gettext/) (to build the package)
* [FFmpeg](https://ffmpeg.org/download.html) (optional, to post process video files)
* [Python 3](https://www.python.org/downloads)
* [wxPython 4 Phoenix](https://wxpython.org/download.php)
* [TwoDict](https://pypi.org/project/twodict)
* [PyPubSub](https://pypi.org/project/PyPubSub)
* [polib](https://pypi.org/project/polib)
* [FFmpeg](https://ffmpeg.org/download.html) (optional, to postprocess video files)

### Requirement for build Binaries/Executables
* [PyInstaller](https://www.pyinstaller.org/)

### Optionals
* [GNU gettext](https://www.gnu.org/software/gettext/)

## Downloads
* [Source (.zip)](https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.zip)
* [Source (.tar.gz)](https://github.com/MrS0m30n3/youtube-dl-gui/archive/0.4.tar.gz)
* [PyPi](https://pypi.python.org/pypi/youtube-dlg/0.4)
* [Ubuntu PPA](http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/y/youtube-dlg/)
* [Arch AUR](https://aur.archlinux.org/packages/youtube-dl-gui-git/)
* [Slackware SlackBuild](https://slackbuilds.org/repository/14.2/network/youtube-dl-gui/)
* [openSUSE](https://software.opensuse.org/package/youtube-dl-gui)
* [Windows Installer](https://github.com/MrS0m30n3/youtube-dl-gui/releases/download/0.4/youtube-dl-gui-0.4-win-setup.zip)
* [Windows Portable](https://github.com/MrS0m30n3/youtube-dl-gui/releases/download/0.4/youtube-dl-gui-0.4-win-portable.zip)
* [SHA2-256SUMS](https://github.com/oleksis/youtube-dl-gui/releases/download/v1.1.4/SHA2-256SUMS)
* [youtube-dlg](https://github.com/oleksis/youtube-dl-gui/releases/download/v1.1.4/youtube-dlg)
* [youtube-dlg.exe](https://github.com/oleksis/youtube-dl-gui/releases/download/v1.1.4/youtube-dlg.exe)
* [Source (.zip)](https://github.com/oleksis/youtube-dl-gui/archive/v1.1.4.zip)
* [Source (.tar.gz)](https://github.com/oleksis/youtube-dl-gui/archive/v1.1.4.tar.gz)

## Installation

### Install From Source
1. Download & extract the source
2. Change directory into *youtube-dl-gui-0.4*
3. Run `python setup.py install`
* Download & extract the source
* Change directory into *youtube-dl-gui-1.1.4*
* Create virtual environment
```
python3 -m venv env
```
* Activate virtual environment
```
source env/bin/activate
```
* Install requirements, build translations and install
```
pip install -r requirements.txt
python setup.py build_trans
python setup.py install
```

## Binaries
Create binaries using [PyInstaller](https://www.pyinstaller.org/)
* Create virtual environment
```
python3 -m venv env
```
* Activate virtual environment
```
source env/bin/activate
```
* Install requirements, build translations and create binaries
```
pip install -r requirements.txt
python setup.py build_trans
python setup.py pyinstaller
```

## Run Youtube-DLG
* Activate virtual environment and run
```
source env/bin/activate
youtube-dl-gui
```

## Notes
An alternative to install wxPython 4 **Phoenix** from the Extras section

### Install PyPi
1. Run `pip install youtube-dlg`
For Ubuntu 20.04

### Install Windows Installer
1. Download & extract the Windows installer
2. Run the `setup.exe` file
```
wget https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-20.04/wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
pip3 install wxPython-4.1.0-cp38-cp38-linux_x86_64.whl
```

## Contributing
* **Add support for new language:** See [localization howto](docs/localization_howto.md)
* **Report a bug:** See [issues](https://github.com/MrS0m30n3/youtube-dl-gui/issues)
* **Report a bug:** See [issues](https://github.com/oleksis/youtube-dl-gui/issues)

## Authors
See [AUTHORS](AUTHORS) file
Expand Down