mirror of
https://github.com/leminlimez/Nugget.git
synced 2025-04-08 04:23:05 +08:00
disable non working features
This commit is contained in:
@@ -4,9 +4,6 @@ import ffmpeg
|
||||
from tempfile import mkdtemp, NamedTemporaryFile
|
||||
from shutil import rmtree
|
||||
|
||||
import ffmpeg.stream
|
||||
import ffmpeg.video
|
||||
|
||||
def convert_to_mov(input_file: str, output_file: str = None):
|
||||
# if there is no output file specified, create a temp file then return contents
|
||||
if output_file == None:
|
||||
|
||||
@@ -21,7 +21,7 @@ from tweaks.custom_gestalt_tweaks import CustomGestaltTweaks, ValueTypeStrings
|
||||
from tweaks.daemons_tweak import Daemon
|
||||
|
||||
App_Version = "5.1"
|
||||
App_Build = 6
|
||||
App_Build = 7
|
||||
|
||||
class Page(Enum):
|
||||
Home = 0
|
||||
@@ -173,14 +173,13 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||
self.ui.resetPRBExtBtn.clicked.connect(self.on_resetPRBExtBtn_clicked)
|
||||
self.ui.deleteAllDescriptorsBtn.clicked.connect(self.on_deleteAllDescriptorsBtn_clicked)
|
||||
|
||||
self.ui.chooseThumbBtn.clicked.connect(self.on_chooseThumbBtn_clicked)
|
||||
self.ui.chooseVideoBtn.clicked.connect(self.on_chooseVideoBtn_clicked)
|
||||
self.ui.clearSuggestedBtn.clicked.connect(self.on_clearSuggestedBtn_clicked)
|
||||
self.ui.caVideoChk.toggled.connect(self.on_caVideoChk_toggled)
|
||||
self.ui.reverseLoopChk.toggled.connect(self.on_reverseLoopChk_toggled)
|
||||
self.ui.useForegroundChk.toggled.connect(self.on_useForegroundChk_toggled)
|
||||
self.ui.reverseLoopChk.hide() # hide by default
|
||||
self.ui.useForegroundChk.hide()
|
||||
self.ui.caVideoChk.hide()
|
||||
self.ui.clearSuggestedBtn.hide()
|
||||
self.ui.chooseThumbBtn.hide()
|
||||
self.ui.pbVideoThumbLbl.hide()
|
||||
|
||||
self.ui.findPBBtn.clicked.connect(self.on_findPBBtn_clicked)
|
||||
self.ui.pbHelpBtn.clicked.connect(self.on_pbHelpBtn_clicked)
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import os
|
||||
import zipfile
|
||||
import uuid
|
||||
import re
|
||||
from random import randint
|
||||
from shutil import copytree
|
||||
from PySide6 import QtWidgets
|
||||
@@ -65,7 +64,7 @@ class PosterboardTweak(Tweak):
|
||||
self.tendies: list[TendieFile] = []
|
||||
self.videoThumbnail = None
|
||||
self.videoFile = None
|
||||
self.loop_video = False
|
||||
self.loop_video = True
|
||||
self.reverse_video = False
|
||||
self.use_foreground = False
|
||||
self.bundle_id = "com.apple.PosterBoard"
|
||||
@@ -258,7 +257,6 @@ class PosterboardTweak(Tweak):
|
||||
elif (self.tendies == None or len(self.tendies) == 0) and (self.videoFile == None):
|
||||
return
|
||||
update_label("Generating PosterBoard Video...")
|
||||
self.create_live_photo_files(output_dir)
|
||||
self.create_video_loop_files(output_dir, update_label=update_label)
|
||||
for tendie in self.tendies:
|
||||
update_label(f"Extracting {tendie.name}...")
|
||||
|
||||
Reference in New Issue
Block a user