Skip to content

Commit

Permalink
Revert "Use Github Pages instead of Cloudflare Pages"
Browse files Browse the repository at this point in the history
This reverts commit 465888b.
  • Loading branch information
Shadowsun™ authored and Shadowsun™ committed Aug 22, 2023
1 parent 582ffa8 commit bfc7a76
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ hook.Add("PreVideoLoad", "ShowDependencyWarning", function(Video)
if reason then
if WarningSet then return true end

panel:OpenURL( GetConVar( "cinema_url" ):GetString() .. "screen/" ) -- Fallback to idle screen
panel:OpenURL( GetConVar( "cinema_url" ):GetString() ) -- Fallback to idle screen

warning.Set(
translations:Format("Dependency_Missing_Line1"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ function LoadVideo( Video )

if not Video then return end

local theaterUrl = GetConVar( "cinema_url" ):GetString() .. "screen/"
local theaterUrl = GetConVar( "cinema_url" ):GetString()

local panel = ActivePanel()
if not IsValid( panel ) then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function SERVICE:Match( url )
end

if (CLIENT) then
local PLAYER_URL = GetConVar("cinema_url"):GetString() .. "screen/soundcloud.html?url=https://soundcloud.com/%s/%s"
local PLAYER_URL = GetConVar("cinema_url"):GetString() .. "soundcloud.html?url=https://soundcloud.com/%s/%s"

function SERVICE:LoadProvider( Video, panel )

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SERVICE.IsTimed = true
SERVICE.Dependency = DEPENDENCY_PARTIAL

local METADATA_URL = "https://www.youtube.com/watch?v=%s"
local THEATER_URL = GetConVar("cinema_url"):GetString() .. "screen/youtube.html?v=%s"
local THEATER_URL = GetConVar("cinema_url"):GetString() .. "youtube.html?v=%s"

function SERVICE:Match( url )
return url.host and url.host:match("youtu.?be[.com]?")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
CreateConVar( "cinema_url", "https://purrcoding.github.io/cinema/", FCVAR_REPLICATED, "Cinema url to load on theater screens." )
CreateConVar( "cinema_url", "https://gmod-cinema.pages.dev/cinema/", FCVAR_REPLICATED, "Cinema url to load on theater screens." )
CreateConVar( "cinema_queue_mode", 1, { FCVAR_ARCHIVE, FCVAR_DONTRECORD, FCVAR_REPLICATED }, "1 = Videos may be voted up or down\n2 = Videos are played in the order they're requested" )

if CLIENT then
Expand Down

0 comments on commit bfc7a76

Please sign in to comment.