tartube/pack/bin/pkg/tartube

100 lines
3.2 KiB
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (C) 2019-2022 A S Lewis
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
"""Tartube main file."""
# Import Gtk modules
# ...
# Import other modules
import os
import sys
import importlib.util
# Add module directory to path to prevent import issues
spec = importlib.util.find_spec('tartube')
if spec is not None:
sys.path.append(os.path.abspath(os.path.dirname(spec.origin)))
# Import our modules
import mainapp
# 'Global' variables
__packagename__ = 'tartube'
__version__ = '2.4.093'
__date__ = '31 Jul 2022'
__copyright__ = 'Copyright \xa9 2019-2022 A S Lewis'
__license__ = """
Copyright \xa9 2019-2022 A S Lewis.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <http://www.gnu.org/licenses/>.
"""
__author_list__ = [
'A S Lewis',
]
__credit_list__ = [
# (This list is formatted to suit Gtk.AboutDialog)
'Partially based on youtube-dl-gui by MrS0m30n3',
'https://github.com/MrS0m30n3/youtube-dl-gui',
'FFmpeg thumbnail code adapted from youtube-dl',
'http://youtube-dl.org/',
'FFmpeg options adapted from FFmpeg Command',
'Line Wizard by AndreKR',
'https://github.com/AndreKR/ffmpeg-command-line-wizard',
'Upgraded Textview by Kevin Mehall',
'https://kevinmehall.net/2010/pygtk_multi_select_drag_drop',
'Youtube Stream Capture by mrwnwttk',
'https://github.com/mrwnwttk',
]
__description__ = 'A front-end GUI for youtube-dl,\n' \
+ 'written in Python 3 / Gtk 3'
__website__ = 'http://tartube.sourceforge.io'
__app_id__ = 'io.sourceforge.tartube'
__website_bugs__ = 'https://github.com/axcore/tartube'
__website_dev__ = 'http://raw.githubusercontent.com/axcore/tartube/master'
# Flag set to True if multiple instances of Tartube are allowed; False if
# only a single instance is allowed
__multiple_instance_flag__ = True
# There are four executables; this default one, and three others used in
# packaging. The others are identical, except for the values of these
# variables
__pkg_install_flag__ = True
__pkg_strict_install_flag__ = False
__pkg_no_download_flag__ = False
# Start Tartube
app = mainapp.TartubeApp()
app.run(sys.argv)