Add Korean translation, fix desensitied download button in Classic Mode, detect yt-dlp version

This commit is contained in:
A S Lewis 2021-02-16 16:59:09 +00:00
parent fcd10e4933
commit 7e5eb0f3a7
25 changed files with 2780 additions and 2711 deletions

12
.github/ISSUE_TEMPLATE/ask_question.md vendored Normal file
View File

@ -0,0 +1,12 @@
---
name: Ask Question 💡
about: Ask a Tartube related question
labels: question
---
Thanks for taking the time to ask a question!
### Please read the README
Perhaps your question is answered there
### The authors are not experts in python, security, youtube-dl, FFmpeg, Debian/RPM packaging or Windows programming
You are welcome to ask a Tartube-related question, but you might get a better answer in forums where those kinds of expert can be found

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View File

@ -0,0 +1,31 @@
---
name: Bug report 🐞
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
Thanks for taking the time to submit a bug report! Please include the following information:
### What operating system are you using?
If using MS Windows, are you using Windows 10, Windows 7, or something else?
### What version of Tartube are you using?
In Tartube's main window, click Help > About
### What happens when you run Tartube from a terminal window?
Many error messages are only visible in the terminal window. On MS Windows, this is how to do it:
- First, enable hidden folders on your system
- Then, run the application:
C:\Users\YOURNAME\AppData\Local\Tartube\msys64\mingw64.exe
- In this new window, type these commands to start Tartube:
cd /home/user/tartube
python3 tartube/tartube
###If your bug report is "I can't download this video", please provide a link to the video
This will save a lot of time!

View File

@ -0,0 +1,13 @@
---
name: Feature Request 💡
about: Suggest a new idea for the project.
labels: enhancement
---
Thanks for taking the time to submit a feature request!
### Make sure you are using the most recent version of Tartube
Perhaps your feature request has already been implemented. The most recent version can be downloaded from Github
### Please read the README
Perhaps your feature request is already possible

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
# This file copied from
# https://python-packaging.readthedocs.io/en/latest/minimal.html?highlight=gitignore
# Compiled python modules.
*.pyc
# Setuptools distribution folder.
/dist/
# Python egg metadata, regenerated from source files by setuptools.
/*.egg-info

View File

@ -141,7 +141,7 @@ If you want to perform a manual installation, you can follow this procedure, whi
**pacman -S mingw-w64-x86_64-python3**
**pacman -S mingw-w64-x86_64-python-pip**
**pacman -S mingw-w64-x86_64-python3-pip**
**pacman -S mingw-w64-x86_64-python3-gobject**

View File

@ -1 +1 @@
2.3.085
2.3.097

BIN
icons/locale/flag_ko_KR.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
# Tartube v2.3.085 installer script for MS Windows
# Tartube v2.3.097 installer script for MS Windows
#
# Copyright (C) 2019-2021 A S Lewis
#
@ -249,7 +249,7 @@
;Name and file
Name "Tartube"
OutFile "install-tartube-2.3.085-32bit.exe"
OutFile "install-tartube-2.3.097-32bit.exe"
;Default installation folder
InstallDir "$LOCALAPPDATA\Tartube"
@ -352,7 +352,7 @@ Section "Tartube" SecClient
# "Publisher" "A S Lewis"
# WriteRegStr HKLM \
# "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tartube" \
# "DisplayVersion" "2.3.085"
# "DisplayVersion" "2.3.097"
# Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"

View File

@ -1,4 +1,4 @@
# Tartube v2.3.085 installer script for MS Windows
# Tartube v2.3.097 installer script for MS Windows
#
# Copyright (C) 2019-2021 A S Lewis
#
@ -249,7 +249,7 @@
;Name and file
Name "Tartube"
OutFile "install-tartube-2.3.085-64bit.exe"
OutFile "install-tartube-2.3.097-64bit.exe"
;Default installation folder
InstallDir "$LOCALAPPDATA\Tartube"
@ -352,7 +352,7 @@ Section "Tartube" SecClient
# "Publisher" "A S Lewis"
# WriteRegStr HKLM \
# "Software\Microsoft\Windows\CurrentVersion\Uninstall\Tartube" \
# "DisplayVersion" "2.3.085"
# "DisplayVersion" "2.3.097"
# Create uninstaller
WriteUninstaller "$INSTDIR\Uninstall.exe"

View File

@ -42,8 +42,8 @@ import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__version__ = '2.3.085'
__date__ = '13 Jan 2021'
__version__ = '2.3.097'
__date__ = '16 Feb 2021'
__copyright__ = 'Copyright \xa9 2019-2021 A S Lewis'
__license__ = """
Copyright \xa9 2019-2021 A S Lewis.

View File

@ -42,8 +42,8 @@ import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__version__ = '2.3.085'
__date__ = '13 Jan 2021'
__version__ = '2.3.097'
__date__ = '16 Feb 2021'
__copyright__ = 'Copyright \xa9 2019-2021 A S Lewis'
__license__ = """
Copyright \xa9 2019-2021 A S Lewis.

View File

@ -42,8 +42,8 @@ import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__version__ = '2.3.085'
__date__ = '13 Jan 2021'
__version__ = '2.3.097'
__date__ = '16 Feb 2021'
__copyright__ = 'Copyright \xa9 2019-2021 A S Lewis'
__license__ = """
Copyright \xa9 2019-2021 A S Lewis.

View File

@ -1,4 +1,4 @@
.TH man 1 "13 Jan 2021" "2.3.085" "tartube man page"
.TH man 1 "16 Feb 2021" "2.3.097" "tartube man page"
.SH NAME
tartube \- GUI front-end for youtube-dl
.SH SYNOPSIS

View File

@ -1,6 +1,6 @@
[Desktop Entry]
Name=Tartube
Version=2.3.085
Version=2.3.097
Exec=tartube
Icon=tartube
Type=Application

View File

@ -182,7 +182,7 @@ for path in glob.glob('sounds/*'):
# Setup
setuptools.setup(
name='tartube',
version='2.3.085',
version='2.3.097',
description='GUI front-end for youtube-dl',
long_description=long_description,
long_description_content_type='text/plain',

View File

@ -38,6 +38,7 @@ from mainapp import _
locale_setup_list = [
'en_GB', 'English',
'en_US', 'English (American)',
'ko_KR', '한국어',
'nl_NL', 'Nederlands',
]

View File

@ -420,8 +420,9 @@ class TartubeApp(Gtk.Application):
# (ignored if self.auto_expand_video_index_flag is False)
self.full_expand_video_index_flag = False
# Flag set to True if the 'Download all' buttons in the main window
# toolbar and in the Videos tab should be disabled (in case the u
# user is sure they only want to do simulated downloads)
# toolbar and in the Videos tab should be disabled (in case the user
# is sure they only want to do simulated downloads)
# Does not apply to the download buttons in the Classic Mode tab
self.disable_dl_all_flag = False
# Flag set to True if we should use 'Today' and 'Yesterday' in the
# Video Index, rather than a date
@ -830,7 +831,8 @@ class TartubeApp(Gtk.Application):
# If specified the name of a youtube-dl fork to use, instead of the
# original youtube-dl. When specified, all system commands replace
# youtube-dl with this value
# If not specified, the value should be None (not an empty string)
# If not specified, the value should be None (not an empty string).
# Ignored when self.ytdl_path_custom_flag is True
# (Tartube assumes that the fork is largely compatible with the
# original)
self.ytdl_fork = None

View File

@ -3356,8 +3356,7 @@ class MainWin(Gtk.ApplicationWindow):
self.classic_ffmpeg_button.set_sensitive(sens_flag)
self.classic_clear_button.set_sensitive(sens_flag)
self.classic_clear_dl_button.set_sensitive(sens_flag)
if __main__.__pkg_no_download_flag__ \
or self.app_obj.disable_dl_all_flag:
if __main__.__pkg_no_download_flag__:
self.classic_redownload_button.set_sensitive(False)
self.classic_download_button.set_sensitive(False)
else:
@ -3485,8 +3484,7 @@ class MainWin(Gtk.ApplicationWindow):
self.classic_ffmpeg_button.set_sensitive(sens_flag)
self.classic_clear_button.set_sensitive(sens_flag)
self.classic_clear_dl_button.set_sensitive(sens_flag)
if __main__.__pkg_no_download_flag__ \
or self.app_obj.disable_dl_all_flag:
if __main__.__pkg_no_download_flag__:
self.classic_redownload_button.set_sensitive(False)
self.classic_download_button.set_sensitive(False)
else:
@ -3672,11 +3670,14 @@ class MainWin(Gtk.ApplicationWindow):
self.classic_clear_button.set_sensitive(sens_flag)
self.classic_clear_dl_button.set_sensitive(sens_flag)
if __main__.__pkg_no_download_flag__ \
or self.app_obj.disable_dl_all_flag:
if __main__.__pkg_no_download_flag__:
self.download_media_button.set_sensitive(False)
self.classic_download_button.set_sensitive(False)
self.classic_redownload_button.set_sensitive(False)
elif self.app_obj.disable_dl_all_flag:
self.download_media_button.set_sensitive(False)
self.classic_download_button.set_sensitive(False)
self.classic_redownload_button.set_sensitive(sens_flag)
else:
self.download_media_button.set_sensitive(sens_flag)
self.classic_download_button.set_sensitive(sens_flag)
@ -3934,8 +3935,6 @@ class MainWin(Gtk.ApplicationWindow):
self.custom_dl_all_menu_item.set_sensitive(True)
self.download_all_toolbutton.set_sensitive(True)
self.download_media_button.set_sensitive(True)
self.classic_download_button.set_sensitive(True)
self.classic_redownload_button.set_sensitive(True)
def disable_dl_all_buttons(self):
@ -3958,8 +3957,6 @@ class MainWin(Gtk.ApplicationWindow):
self.custom_dl_all_menu_item.set_sensitive(False)
self.download_all_toolbutton.set_sensitive(False)
self.download_media_button.set_sensitive(False)
self.classic_download_button.set_sensitive(False)
self.classic_redownload_button.set_sensitive(False)
def update_catalogue_filter_widgets(self):

File diff suppressed because it is too large Load Diff

View File

@ -42,8 +42,8 @@ import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__version__ = '2.3.085'
__date__ = '13 Jan 2021'
__version__ = '2.3.097'
__date__ = '16 Feb 2021'
__copyright__ = 'Copyright \xa9 2019-2021 A S Lewis'
__license__ = """
Copyright \xa9 2019-2021 A S Lewis.

View File

@ -426,7 +426,7 @@ class UpdateManager(threading.Thread):
# Try to intercept the new version number for
# youtube-dl
self.intercept_version_from_stdout(stdout)
self.intercept_version_from_stdout(stdout, downloader)
self.stdout_list.append(stdout)
# Show command line output in the Output Tab (or wizard
@ -531,7 +531,7 @@ class UpdateManager(threading.Thread):
)
def intercept_version_from_stdout(self, stdout):
def intercept_version_from_stdout(self, stdout, downloader):
"""Called by self.install_yt_dl() only.
@ -542,6 +542,8 @@ class UpdateManager(threading.Thread):
stdout (str): The STDOUT message
downloader (str): The name of the downloader, e.g. 'youtube-dlc'
"""
substring = re.search(
@ -554,7 +556,7 @@ class UpdateManager(threading.Thread):
else:
substring = re.search(
'Successfully installed youtube\-dl\-([^\(\)]+)\s*$',
'Successfully installed ' + downloader + '\-([^\(\)]+)\s*$',
stdout,
)