Skip to content

Commit

Permalink
Remove package restart (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPresso authored Jun 30, 2024
1 parent aac3214 commit 9296cb8
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions patcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,24 +130,16 @@ check_dependencies() {
fi
}

restart_packages() {
if [[ -d $cp_bin_path ]]; then
if [[ -d "$cp_base_path/etc/gstreamer-1.0" ]]; then
info "Clearing CodecPack gstreamer cache..."
rm -f "$cp_base_path/etc/gstreamer-1.0/registry.*.bin"
fi

info "Restarting CodecPack..."
synopkg restart CodecPack
clear_cache() {
if [[ -d "$cp_base_path/etc/gstreamer-1.0" ]]; then
info "Clearing CodecPack gstreamer cache..."
rm -f "$cp_base_path/etc/gstreamer-1.0/registry.*.bin"
fi

if [[ -d "$vs_base_path/etc/gstreamer-1.0" ]]; then
info "Clearing VideoStation gstreamer cache..."
rm -f "$vs_base_path/etc/gstreamer-1.0/registry.*.bin"
fi

info "Restarting VideoStation..."
synopkg restart VideoStation
}

clean() {
Expand Down Expand Up @@ -285,7 +277,7 @@ patch() {
info "Enabling eac3, dts and truehd"
sed -i -e 's/eac3/3cae/' -e 's/dts/std/' -e 's/truehd/dheurt/' "$libsynovte_path"

restart_packages
clear_cache
clean

success "Done patching, you can now enjoy your movies ;) (please add a star to the repo if it worked for you)"
Expand Down Expand Up @@ -339,7 +331,7 @@ unpatch() {
fi
fi

restart_packages
clear_cache
clean

success "Unpatch complete"
Expand Down

0 comments on commit 9296cb8

Please sign in to comment.