Follow TV Tropes

Following

History Tropers / STUART

Go To

OR

Added: 146

Changed: 77

Removed: 32

Is there an issue? Send a MessageReason:
None


* BuffyTheVampireSlayer (not including the comics)



* MrShowWithBobAndDavid




to:

* TwinPeaks



* BuffyTheVampireSlayer (through season five)
* {{Angel}} (through season two)

to:

* BuffyTheVampireSlayer (through season five)
* {{Angel}} (through season two)four)




to:

* TheSopranos (through season one)
* {{Dexter}} (through season 2)
* TheLarrySandersShow (through season one)
Is there an issue? Send a MessageReason:
None



to:

* AfroSamurai (season one)

Added: 45

Changed: 45

Is there an issue? Send a MessageReason:
None


* MaxHeadroom




to:

* BuffyTheVampireSlayer (through season five)
* {{Angel}} (through season two)
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* Studio60OnTheSunsetStrip
Is there an issue? Send a MessageReason:
None


* [[{{Reno911}} Reno 911!]] (not counting ''Reno 911: Miami'')

to:

* [[{{Reno911}} Reno 911!]] (not counting (including ''Reno 911: Miami'')
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* SportsNight

Added: 231

Changed: 49

Is there an issue? Send a MessageReason:
None


* [[{{Reno911}} Reno 911!]] (not counting ''Reno 911: Miami'')



* [[{{Reno911}} Reno 911!]] (through season five)

to:

* [[{{Reno911}} Reno 911!]] (through season five)



* TheVentureBrothers (first three seasons)

to:

* TheVentureBrothers (first three seasons)seasons)

!CROWBAR

My belief in {{CROWBAR}} is that alternative solutions should be proposed if problems are going to be identified.

*http://www.mediawiki.org/wiki/Extension:Reflect
Is there an issue? Send a MessageReason:
None


Northwestern 21-year old nerd kid in the games industry. Programs in {{Lua}}.

to:

Pacific Northwestern 21-year old nerd kid in the games industry. Programs in {{Lua}}.
Is there an issue? Send a MessageReason:
None


!Works:

to:

!Works:
!Troper Works:

Added: 59

Changed: 22

Is there an issue? Send a MessageReason:
None


For more, see http://testtrack4.com/wiki/Stuart_P._Bentley.



!Things I've Written:

to:

!Things I've Written:
!Works:
Is there an issue? Send a MessageReason:
None


!!Cracked articles:

to:

!!Cracked !!{{Cracked}}.com articles:
Is there an issue? Send a MessageReason:
None

Added DiffLines:

!Things I've Written:

!!Cracked articles:
*[[http://www.cracked.com/article_18808_7-reasons-computer-glitches-wont-go-away-ever.html 7 Reasons Computer Glitches Won't Go Away (Ever)]]
Is there an issue? Send a MessageReason:
None


* {{Community}} (one season)

to:

* {{Community}} (one season)season, as well as what's been aired for season 2)
Is there an issue? Send a MessageReason:
None


* SouthPark (13 seasons, not counting ''201'')

to:

* SouthPark (13 seasons, not counting ''201'')''201'')
* TheVentureBrothers (first three seasons)
Is there an issue? Send a MessageReason:
None


* SouthPark (13 seasons, not counting 201)

to:

* SouthPark (13 seasons, not counting 201)''201'')
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* SouthPark (13 seasons, not counting 201)
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* ABitOfFryAndLaurie

Added: 10

Changed: 39

Removed: 10

Is there an issue? Send a MessageReason:
None


Editing-wise, I'm a SerialTweaker due to ProximalErrorProbability and general draft-based editing.

to:

Editing-wise, I'm a SerialTweaker due to ProximalErrorProbability and general draft-based editing.
other such phenomena.



* TheState



* TheState
Is there an issue? Send a MessageReason:
None

Added DiffLines:

* TheState
Is there an issue? Send a MessageReason:
None


* [[{{Reno911}} Reno 911!]]

to:

* [[{{Reno911}} Reno 911!]]
911!]] (through season five)
Is there an issue? Send a MessageReason:
None

Added DiffLines:

Editing-wise, I'm a SerialTweaker due to ProximalErrorProbability and general draft-based editing.

Added: 91

Changed: 92

Is there an issue? Send a MessageReason:
None


!Lua scripts: %%CTRL+F "ENDSCRIPTS" to skip past this part, it's automatically written by tropersrepo.lua

to:

!Lua scripts: scripts:

%%CTRL+F "ENDSCRIPTS" to skip past this part, it's automatically written by tropersrepo.lua
Is there an issue? Send a MessageReason:
None


!Lua scripts:

to:

!Lua scripts:
scripts: %%CTRL+F "ENDSCRIPTS" to skip past this part, it's automatically written by tropersrepo.lua
Is there an issue? Send a MessageReason:
None

Added DiffLines:

!Quick Links:

WikiTechWishList

Changed: 22

Removed: 2

Is there an issue? Send a MessageReason:
None


@@[=push "dammit, tv tropes"=]@@
\\

to:

@@[=push "dammit, tv tropes"=]@@
\\
@@[=push()=]@@

Added: 68

Changed: 72

Is there an issue? Send a MessageReason:
dammit, tv tropes


@@[= =][= =][= =][= =][= =][= =][=function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@

to:

@@[= =][= =][= =][= =][= =][= =][=function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped = line=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]","=]=[=]")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]","=]=[=]")=]@@=][=escaped=string.gsub(escaped,"=]=[=]","=]=[=]=[=]=[=]")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]~[=","=]=]~[=[=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]~[=","=]=]~[=[=")=]@@=][=escaped=string.gsub(escaped,"=]~[=","=]=[=]=]~[=[=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]][=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]][=")=]@@gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s," "," =][=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s," "," =][=")=]@@=]=[=][=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]@@",escaped)=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]@@",escaped)=]@@format("@@[=%s=]=[=]@@",escaped)=]@@



@@[=]=]=]@@

to:

@@[=]=]=]@@@@[=]=]=[=]=]@@

Added: 75

Changed: 17

Is there an issue? Send a MessageReason:
dammit, tv tropes


@@[= =][= =][= =][= =][= =][= =][= =][= =][=--skip tildes because of that thing=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=--skip tildes because of that thing=]@@thing it does where it=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--replaces them with thorns=]@@

Added: 389

Changed: 36

Is there an issue? Send a MessageReason:
dammit, tv tropes


@@[= =][= =][=str = string.gsub (str, "([^%w%-%.%_%~ ])",=]@@

to:

@@[= =][= =][=str = string.gsub (str, "([^%w%-%.%_%~ %_%=]~[= ])",=]@@



@@[= =][= =][=if tonumber(response[2])~=302 then=]@@

to:

@@[= =][= =][=if tonumber(response[2])~=302 tonumber(response[2])=]~[==302 then=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@gsub(line,"=]","=]=[=]")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=--skip tildes because of that thing=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]~[=","=]=]~[=[=")=]@@
\\



@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@gsub(escaped,"folder]=]][=","folder]=]][=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s," "," =]=[=][=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s," "," =]=[=][=")=]@@=][=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@format("@@[=%s=]@@",escaped)=]@@



@@[=]=]=[=]=]@@

to:

@@[=]=]=[=]=]@@@@[=]=]=]@@


Added DiffLines:

@@[= =][= =][= =][= =][=--as is Beef Consomme=]@@
@@[= =][= =][= =][= =][=elseif s==1 and e==13 then=]@@
@@[= =][= =][= =][= =][= =][= =][=print "(Skipping Beef Consomme because the links go all screwy)"=]@@

Added: 147

Changed: 2931

Is there an issue? Send a MessageReason:
dammit, tv tropes


@@[= =][= --Ensure all newlines are in CRLF form=]@@
@@[= =][= str = string.gsub (str, "\r?\n", "\r\n")=]@@
@@[= =][= --Percent-encode all non-unreserved characters=]@@
@@[= =][= --as per RFC 3986, Section 2.3=]@@
@@[= =][= --(except for space, which gets plus-encoded)=]@@
@@[= =][= str = string.gsub (str, "([^%w%-%.%_%~ ])",=]@@
@@[= =][= =][= =][= function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@
@@[= =][= --Convert spaces to plus signs=]@@
@@[= =][= return string.gsub (str, " ", "+")=]@@

to:

@@[= =][= --Ensure =][=--Ensure all newlines are in CRLF form=]@@
@@[= =][= str =][=str = string.gsub (str, "\r?\n", "\r\n")=]@@
@@[= =][= --Percent-encode =][=--Percent-encode all non-unreserved characters=]@@
@@[= =][= --as =][=--as per RFC 3986, Section 2.3=]@@
@@[= =][= --(except =][=--(except for space, which gets plus-encoded)=]@@
@@[= =][= str =][=str = string.gsub (str, "([^%w%-%.%_%~ ])",=]@@
@@[= =][= =][= =][= function =][= =][= =][=function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@
@@[= =][= --Convert =][=--Convert spaces to plus signs=]@@
@@[= =][= return =][=return string.gsub (str, " ", "+")=]@@



@@[= =][= --table of argument strings=]@@
@@[= =][= local argts, i= {}, 1=]@@
@@[= =][= for k, v in pairs(t) do=]@@
@@[= =][= =][= argts[i]=encode(k).."="..encode(v)=]@@
@@[= =][= =][= i=i+1=]@@
@@[= =][= end=]@@
@@[= =][= return table.concat(argts,'&')=]@@

to:

@@[= =][= --table =][=--table of argument strings=]@@
@@[= =][= local =][=local argts, i= {}, 1=]@@
@@[= =][= for =][=for k, v in pairs(t) do=]@@
@@[= =][= =][= argts[i]=encode(k)..=][= =][=argts[i]=encode(k).."="..encode(v)=]@@
@@[= =][= =][= i=i+1=]@@
=][= =][=i=i+1=]@@
@@[= =][= end=]@@
=][=end=]@@
@@[= =][= return =][=return table.concat(argts,'&')=]@@



@@[= =][= return "http://:foamy@tvtropes.org/pmwiki/pmwiki.php/"..page=]@@

to:

@@[= =][= return =][=return "http://:foamy@tvtropes.org/pmwiki/pmwiki.php/"..page=]@@



@@[= =][= --Require pagename=]@@
@@[= =][= assert(type(page)=="string","Destination page name required")=]@@
@@[= =][= --If no namespace specified, assume Main=]@@
@@[= =][= if not string.find(page,'/') then page="Main/"..page end=]@@

to:

@@[= =][= --Require =][=--Require pagename=]@@
@@[= =][= assert(type(page)=="string","Destination =][=assert(type(page)=="string","Destination page name required")=]@@
@@[= =][= --If =][=--If no namespace specified, assume Main=]@@
@@[= =][= if =][=if not string.find(page,'/') then page="Main/"..page end=]@@



@@[= =][= return page=]@@

to:

@@[= =][= return =][=return page=]@@



@@[= =][= page=fullname(page)=]@@

to:

@@[= =][= page=fullname(page)=]@@=][=page=fullname(page)=]@@



@@[= =][= assert(type(body)=="string","Page body required")=]@@

to:

@@[= =][= assert(type(body)=="string","Page =][=assert(type(body)=="string","Page body required")=]@@



@@[= =][= local response ==]@@
@@[= =][= =][= {http.request(authpageurl(page),=]@@
@@[= =][= =][= =][= urlencode.table{=]@@
@@[= =][= =][= =][= =][= action="post", post="save",=]@@
@@[= =][= =][= =][= =][= pagename=page, text=body,=]@@
@@[= =][= =][= =][= =][= author=author or "Anonymous",=]@@
@@[= =][= =][= =][= =][= reason=reason or ""=]@@
@@[= =][= =][= =][= })}=]@@

to:

@@[= =][= local =][=local response ==]@@
@@[= =][= =][= {http.=][= =][={http.request(authpageurl(page),=]@@
@@[= =][= =][= =][= urlencode.=][= =][= =][=urlencode.table{=]@@
@@[= =][= =][= =][= =][= action="post", =][= =][= =][= =][=action="post", post="save",=]@@
@@[= =][= =][= =][= =][= pagename=page, =][= =][= =][= =][=pagename=page, text=body,=]@@
@@[= =][= =][= =][= =][= author=author =][= =][= =][= =][=author=author or "Anonymous",=]@@
@@[= =][= =][= =][= =][= reason=reason =][= =][= =][= =][=reason=reason or ""=]@@
@@[= =][= =][= =][= })}=]@@=][= =][= =][=})}=]@@



@@[= =][= --Error on any socket errors=]@@
@@[= =][= assert(response[1],response[2])=]@@

to:

@@[= =][= --Error =][=--Error on any socket errors=]@@
@@[= =][= assert(response[1],response[2])=]@@=][=assert(response[1],response[2])=]@@



@@[= =][= --If it doesn't return Found, return nil, the status, and the body:=]@@
@@[= =][= --sometimes it just rejects the password for some reason.=]@@
@@[= =][= if tonumber(response[2])~=302 then=]@@
@@[= =][= =][= return nil, response[2], response[1]=]@@
@@[= =][= else return true=]@@
@@[= =][= end=]@@

to:

@@[= =][= --If =][=--If it doesn't return Found, return nil, the status, and the body:=]@@
@@[= =][= --sometimes =][=--sometimes it just rejects the password for some reason.=]@@
@@[= =][= if =][=if tonumber(response[2])~=302 then=]@@
@@[= =][= =][= return =][= =][=return nil, response[2], response[1]=]@@
@@[= =][= else =][=else return true=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= local ents = {quot='"', amp='&', lt='<', gt='>'}=]@@

to:

@@[= =][= local =][=local ents = {quot='"', amp='&', lt='<', gt='>'}=]@@



@@[= =][= function html2plain(src)=]@@
@@[= =][= =][= src=string.gsub(src,"<br/>","\n")=]@@
@@[= =][= =][= src=string.gsub(src,"&(%w-);",ents)=]@@
@@[= =][= =][= return src=]@@
@@[= =][= end=]@@

to:

@@[= =][= function =][=function html2plain(src)=]@@
@@[= =][= =][= src=string.=][= =][=src=string.gsub(src,"<br/>","\n")=]@@
@@[= =][= =][= src=string.=][= =][=src=string.gsub(src,"&(%w-);",ents)=]@@
@@[= =][= =][= return =][= =][=return src=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= page=fullname(page)=]@@

to:

@@[= =][= page=fullname(page)=]@@=][=page=fullname(page)=]@@



@@[= =][= local body, code = http.request(=]@@
@@[= =][= =][= authpageurl(page)..'?action=source')=]@@

to:

@@[= =][= local =][=local body, code = http.request(=]@@
@@[= =][= =][= authpageurl(page)..=][= =][=authpageurl(page)..'?action=source')=]@@



@@[= =][= --Trigger error on socket failure=]@@
@@[= =][= assert(body,code)=]@@

to:

@@[= =][= --Trigger =][=--Trigger error on socket failure=]@@
@@[= =][= assert(body,code)=]@@=][=assert(body,code)=]@@



@@[= =][= --Return the source converted back from the HTML conversion=]@@
@@[= =][= return html2plain(body)=]@@

to:

@@[= =][= --Return =][=--Return the source converted back from the HTML conversion=]@@
@@[= =][= return =][=return html2plain(body)=]@@



@@[= =][= "urlencode.lua",=]@@
@@[= =][= "tvtropes.lua",=]@@
@@[= =][= "tropersrepo.lua",=]@@
@@[= =][= "arrdev_recap.lua",=]@@

to:

@@[= =][= "urlencode.=][="urlencode.lua",=]@@
@@[= =][= "tvtropes.=][="tvtropes.lua",=]@@
@@[= =][= "tropersrepo.=][="tropersrepo.lua",=]@@
@@[= =][= "arrdev_recap.=][="arrdev_recap.lua",=]@@



@@[= =][= return string.format(=]@@
@@[= =][= =][= "[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
@@[= =][= =][= name,script)=]@@

to:

@@[= =][= return =][=return string.format(=]@@
@@[= =][= =][= "[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
=][= =][="[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
@@[= =][= =][= name,script)=]@@=][= =][=name,script)=]@@



@@[= =][= local folders={=]@@
@@[= =][= =][= "%%START".."SCRIPTS%%",=]@@
@@[= =][= =][= "[[foldercontrol]]"=]@@
@@[= =][= }=]@@
@@[= =][= local headers=#folders=]@@

to:

@@[= =][= local =][=local folders={=]@@
@@[= =][= =][= "%%START"..=][= =][="%%START".."SCRIPTS%%",=]@@
@@[= =][= =][= "[[foldercontrol]]"=]@@
=][= =][="[[foldercontrol]]"=]@@
@@[= =][= }=]@@
=][=}=]@@
@@[= =][= local =][=local headers=#folders=]@@



@@[= =][= for i=1, #scripts do=]@@
@@[= =][= =][= local slines={}=]@@
@@[= =][= =][= for line in io.lines(scripts[i]) do=]@@

to:

@@[= =][= for =][=for i=1, #scripts do=]@@
@@[= =][= =][= local =][= =][=local slines={}=]@@
@@[= =][= =][= for =][= =][=for line in io.lines(scripts[i]) do=]@@



@@[= =][= =][= =][= if line=="" then=]@@
@@[= =][= =][= =][= =][= slines[#slines+1]='\\\\'=]@@
@@[= =][= =][= =][= else=]@@
@@[= =][= =][= =][= =][= --escape everything, and only fiddle with=]@@
@@[= =][= =][= =][= =][= --what must be fiddled with=]@@

to:

@@[= =][= =][= =][= if =][= =][= =][=if line=="" then=]@@
@@[= =][= =][= =][= =][= slines[#slines+1]='\\\\'=]@@
@@[=
=][= =][= =][= else=]@@
=][=slines[#slines+1]='\\\\'=]@@
@@[= =][= =][= =][= =][= --escape =][= =][=else=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--escape
everything, and only fiddle with=]@@
@@[= =][= =][= =][= =][= --what =][= =][= =][= =][=--what must be fiddled with=]@@



@@[= =][= =][= =][= =][= --split anything that would end the escaped region=]@@
@@[= =][= =][= =][= =][= local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@

to:

@@[= =][= =][= =][= =][= --split =][= =][= =][= =][=--split anything that would end the escaped region=]@@
@@[= =][= =][= =][= =][= local =][= =][= =][= =][=local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@



@@[= =][= =][= =][= =][= --also split the folder controls, because hurf durf that ignores=]@@
@@[= =][= =][= =][= =][= --non-formatting=]@@
@@[= =][= =][= =][= =][= escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@

to:

@@[= =][= =][= =][= =][= --also =][= =][= =][= =][=--also split the folder controls, because hurf durf that ignores=]@@
@@[= =][= =][= =][= =][= --non-formatting=]@@
=][= =][= =][= =][=--non-formatting=]@@
@@[= =][= =][= =][= =][= escaped=string.=][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@



@@[= =][= =][= =][= =][= --do I hate this? yes, I do.=]@@
@@[= =][= =][= =][= =][= --escape _every single instance of adjacent spaces_=]@@
@@[= =][= =][= =][= =][= --to keep them from being folded on commit=]@@
@@[= =][= =][= =][= =][= escaped=string.gsub(escaped," =][= "," =]=[=][= ")=]@@

to:

@@[= =][= =][= =][= =][= --do =][= =][= =][= =][=--do I hate this? yes, I do.=]@@
@@[= =][= =][= =][= =][= --escape =][= =][= =][= =][=--escape _every single instance of adjacent spaces_=]@@
@@[= =][= =][= =][= =][= --to =][= =][= =][= =][=--to keep them from being folded on commit=]@@
@@[= =][= =][= =][= =][= escaped=string.=][= =][= =][= =][=escaped=string.gsub(escaped," =][= =][=+",function(s)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s,"
"," =]=[=][= ")=]@@=]=[=][=")=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=end)=]@@



@@[= =][= =][= =][= =][= slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@
@@[= =][= =][= =][= end=]@@
@@[= =][= =][= end=]@@

to:

@@[= =][= =][= =][= =][= slines[#slines+1]=string.=][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@
@@[= =][= =][= =][= end=]@@
=][= =][= =][=end=]@@
@@[= =][= =][= end=]@@=][= =][=end=]@@



@@[= =][= =][= local content=table.concat(slines,'\n')=]@@
@@[= =][= =][= folders[i+headers]=scriptfolder(scripts[i],content)=]@@
@@[= =][= end=]@@

to:

@@[= =][= =][= local =][= =][=local content=table.concat(slines,'\n')=]@@
@@[= =][= =][= folders[i+headers]=scriptfolder(scripts[i],content)=]@@
=][= =][=folders[i+headers]=scriptfolder(scripts[i],content)=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= folders[#folders+1]="%%END".."SCRIPTS%%"=]@@

to:

@@[= =][= folders[#folders+1]="%%END"..=][=folders[#folders+1]="%%END".."SCRIPTS%%"=]@@



@@[= =][= return table.concat(folders,"\n\n")=]@@

to:

@@[= =][= return =][=return table.concat(folders,"\n\n")=]@@



@@[= =][= local gssscripts=string.gsub(revsection(),"%%","%%%%")=]@@

to:

@@[= =][= local =][=local gssscripts=string.gsub(revsection(),"%%","%%%%")=]@@



@@[= =][= print(string.format("Getting current version of %s...",target))=]@@

to:

@@[= =][= print(string.=][=print(string.format("Getting current version of %s...",target))=]@@



@@[= =][= local current=tvtropes.get(target)=]@@

to:

@@[= =][= local =][=local current=tvtropes.get(target)=]@@



@@[= =][= local updated=string.gsub(current,=]@@
@@[= =][= =][= "%%%%START".."SCRIPTS%%%%.-%%%%END".."SCRIPTS%%%%",=]@@
@@[= =][= =][= gssscripts)=]@@

to:

@@[= =][= local =][=local updated=string.gsub(current,=]@@
@@[= =][= =][= "%%%%START"..=][= =][="%%%%START".."SCRIPTS%%%%.-%%%%END".."SCRIPTS%%%%",=]@@
@@[= =][= =][= gssscripts)=]@@=][= =][=gssscripts)=]@@



@@[= =][= print(string.format("Posting new version of %s...",target))=]@@

to:

@@[= =][= print(string.=][=print(string.format("Posting new version of %s...",target))=]@@



@@[= =][= local posted=]@@
@@[= =][= while not posted do=]@@
@@[= =][= =][= posted=tvtropes.post(target,updated,user,notes)=]@@
@@[= =][= =][= if not posted then print" =][= Retrying..." end=]@@
@@[= =][= end=]@@

to:

@@[= =][= local =][=local posted=]@@
@@[= =][= while =][=while not posted do=]@@
@@[= =][= =][= posted=tvtropes.=][= =][=posted=tvtropes.post(target,updated,user,notes)=]@@
@@[= =][= =][= if =][= =][=if not posted then print" =][= Retrying...=][=Retrying..." end=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= {=]@@
@@[= =][= =][= "Pilot",=]@@
@@[= =][= =][= "Top Banana",=]@@
@@[= =][= =][= "Bringing Up Buster",=]@@
@@[= =][= =][= "Key Decisions",=]@@
@@[= =][= =][= "Visiting Ours",=]@@
@@[= =][= =][= "Charity Drive",=]@@
@@[= =][= =][= "My Mother, The Car",=]@@
@@[= =][= =][= "In God We Trust",=]@@
@@[= =][= =][= "Storming the Castle",=]@@
@@[= =][= =][= "Pier Pressure",=]@@
@@[= =][= =][= "Public Relations",=]@@
@@[= =][= =][= "Marta Complex",=]@@
@@[= =][= =][= "Beef Consommé",=]@@
@@[= =][= =][= "Shock and Aww",=]@@
@@[= =][= =][= "Staff Infection",=]@@
@@[= =][= =][= "Missing Kitty",=]@@
@@[= =][= =][= "Altar Egos",=]@@
@@[= =][= =][= "Justice Is Blind",=]@@
@@[= =][= =][= "Best Man for the GOB",=]@@
@@[= =][= =][= "Whistler's Mother",=]@@
@@[= =][= =][= "Not Without My Daughter",=]@@
@@[= =][= =][= "Let 'Em Eat Cake"=]@@
@@[= =][= },=]@@
@@[= =][= {=]@@
@@[= =][= =][= "The One Where Michael Leaves",=]@@
@@[= =][= =][= "The One Where They Build a House",=]@@
@@[= =][= =][= "¡Amigos!",=]@@
@@[= =][= =][= "Good Grief",=]@@
@@[= =][= =][= "Sad Sack",=]@@
@@[= =][= =][= "Afternoon Delight",=]@@
@@[= =][= =][= "Switch Hitter",=]@@
@@[= =][= =][= "Queen for a Day",=]@@
@@[= =][= =][= "Burning Love",=]@@
@@[= =][= =][= "Ready, Aim, Marry Me",=]@@
@@[= =][= =][= "Out on a Limb",=]@@
@@[= =][= =][= "Hand to God",=]@@
@@[= =][= =][= "Motherboy XXX",=]@@
@@[= =][= =][= "The Immaculate Election",=]@@
@@[= =][= =][= "Sword of Destiny",=]@@
@@[= =][= =][= "Meat the Veals",=]@@
@@[= =][= =][= "Spring Breakout",=]@@
@@[= =][= =][= "Righteous Brothers",=]@@
@@[= =][= },=]@@
@@[= =][= {=]@@
@@[= =][= =][= "The Cabin Show",=]@@
@@[= =][= =][= "For British Eyes Only",=]@@
@@[= =][= =][= "Forget-Me-Now",=]@@
@@[= =][= =][= "Notapusy",=]@@
@@[= =][= =][= "Mr. F",=]@@
@@[= =][= =][= "The Ocean Walker",=]@@
@@[= =][= =][= "Prison Break-In",=]@@
@@[= =][= =][= "Making a Stand",=]@@
@@[= =][= =][= "S.O.B.s",=]@@
@@[= =][= =][= "Fakin' It",=]@@
@@[= =][= =][= "Family Ties",=]@@
@@[= =][= =][= "Exit Strategy",=]@@
@@[= =][= =][= "Development Arrested"=]@@
@@[= =][= },=]@@

to:

@@[= =][= {=]@@
=][={=]@@
@@[= =][= =][= "Pilot",=]@@
=][= =][="Pilot",=]@@
@@[= =][= =][= "Top =][= =][="Top Banana",=]@@
@@[= =][= =][= "Bringing =][= =][="Bringing Up Buster",=]@@
@@[= =][= =][= "Key =][= =][="Key Decisions",=]@@
@@[= =][= =][= "Visiting =][= =][="Visiting Ours",=]@@
@@[= =][= =][= "Charity =][= =][="Charity Drive",=]@@
@@[= =][= =][= "My =][= =][="My Mother, The Car",=]@@
@@[= =][= =][= "In =][= =][="In God We Trust",=]@@
@@[= =][= =][= "Storming =][= =][="Storming the Castle",=]@@
@@[= =][= =][= "Pier =][= =][="Pier Pressure",=]@@
@@[= =][= =][= "Public =][= =][="Public Relations",=]@@
@@[= =][= =][= "Marta =][= =][="Marta Complex",=]@@
@@[= =][= =][= "Beef =][= =][="Beef Consommé",=]@@
@@[= =][= =][= "Shock =][= =][="Shock and Aww",=]@@
@@[= =][= =][= "Staff =][= =][="Staff Infection",=]@@
@@[= =][= =][= "Missing =][= =][="Missing Kitty",=]@@
@@[= =][= =][= "Altar =][= =][="Altar Egos",=]@@
@@[= =][= =][= "Justice =][= =][="Justice Is Blind",=]@@
@@[= =][= =][= "Best =][= =][="Best Man for the GOB",=]@@
@@[= =][= =][= "Whistler's =][= =][="Whistler's Mother",=]@@
@@[= =][= =][= "Not =][= =][="Not Without My Daughter",=]@@
@@[= =][= =][= "Let =][= =][="Let 'Em Eat Cake"=]@@
@@[= =][= },=]@@
=][=},=]@@
@@[= =][= {=]@@
=][={=]@@
@@[= =][= =][= "The =][= =][="The One Where Michael Leaves",=]@@
@@[= =][= =][= "The =][= =][="The One Where They Build a House",=]@@
@@[= =][= =][= "¡Amigos!",=]@@
=][= =][="¡Amigos!",=]@@
@@[= =][= =][= "Good =][= =][="Good Grief",=]@@
@@[= =][= =][= "Sad =][= =][="Sad Sack",=]@@
@@[= =][= =][= "Afternoon =][= =][="Afternoon Delight",=]@@
@@[= =][= =][= "Switch =][= =][="Switch Hitter",=]@@
@@[= =][= =][= "Queen =][= =][="Queen for a Day",=]@@
@@[= =][= =][= "Burning =][= =][="Burning Love",=]@@
@@[= =][= =][= "Ready, =][= =][="Ready, Aim, Marry Me",=]@@
@@[= =][= =][= "Out =][= =][="Out on a Limb",=]@@
@@[= =][= =][= "Hand =][= =][="Hand to God",=]@@
@@[= =][= =][= "Motherboy =][= =][="Motherboy XXX",=]@@
@@[= =][= =][= "The =][= =][="The Immaculate Election",=]@@
@@[= =][= =][= "Sword =][= =][="Sword of Destiny",=]@@
@@[= =][= =][= "Meat =][= =][="Meat the Veals",=]@@
@@[= =][= =][= "Spring =][= =][="Spring Breakout",=]@@
@@[= =][= =][= "Righteous =][= =][="Righteous Brothers",=]@@
@@[= =][= },=]@@
=][=},=]@@
@@[= =][= {=]@@
=][={=]@@
@@[= =][= =][= "The =][= =][="The Cabin Show",=]@@
@@[= =][= =][= "For =][= =][="For British Eyes Only",=]@@
@@[= =][= =][= "Forget-Me-Now",=]@@
=][= =][="Forget-Me-Now",=]@@
@@[= =][= =][= "Notapusy",=]@@
=][= =][="Notapusy",=]@@
@@[= =][= =][= "Mr.=][= =][="Mr. F",=]@@
@@[= =][= =][= "The =][= =][="The Ocean Walker",=]@@
@@[= =][= =][= "Prison =][= =][="Prison Break-In",=]@@
@@[= =][= =][= "Making =][= =][="Making a Stand",=]@@
@@[= =][= =][= "S.=][= =][="S.O.B.s",=]@@
@@[= =][= =][= "Fakin' =][= =][="Fakin' It",=]@@
@@[= =][= =][= "Family =][= =][="Family Ties",=]@@
@@[= =][= =][= "Exit =][= =][="Exit Strategy",=]@@
@@[= =][= =][= "Development =][= =][="Development Arrested"=]@@
@@[= =][= },=]@@=][=},=]@@



@@[= =][= --Numbers for episodes with ambiguous titles, Wikipedia-wise,=]@@
@@[= =][= --whose article titles end with "(Arrested Development)"=]@@
@@[= =][= local disambigeps={=]@@
@@[= =][= =][= {1,2,8,11,20,21,22}, --Season 1=]@@
@@[= =][= =][= {5,6,8,9,11,12,18}, --Season 2=]@@
@@[= =][= =][= {10,11,12} --Season 3=]@@
@@[= =][= }=]@@

to:

@@[= =][= --Numbers =][=--Numbers for episodes with ambiguous titles, Wikipedia-wise,=]@@
@@[= =][= --whose =][=--whose article titles end with "(Arrested Development)"=]@@
@@[= =][= local =][=local disambigeps={=]@@
@@[= =][= =][= {1,2,8,11,20,21,22}, =][= =][={1,2,8,11,20,21,22}, --Season 1=]@@
@@[= =][= =][= {5,6,8,9,11,12,18}, =][= =][={5,6,8,9,11,12,18}, --Season 2=]@@
@@[= =][= =][= {10,11,12} =][= =][={10,11,12} --Season 3=]@@
@@[= =][= }=]@@=][=}=]@@



@@[= =][= --construct lookup table=]@@
@@[= =][= local disambiguated={}=]@@
@@[= =][= for s=1,#disambigeps do=]@@
@@[= =][= =][= disambiguated[s]={}=]@@
@@[= =][= =][= for i=1,#disambigeps[s] do=]@@
@@[= =][= =][= =][= disambiguated[s][disambigeps[s][i]]=true=]@@
@@[= =][= =][= end=]@@
@@[= =][= end=]@@

to:

@@[= =][= --construct =][=--construct lookup table=]@@
@@[= =][= local =][=local disambiguated={}=]@@
@@[= =][= for =][=for s=1,#disambigeps do=]@@
@@[= =][= =][= disambiguated[s]={}=]@@
=][= =][=disambiguated[s]={}=]@@
@@[= =][= =][= for =][= =][=for i=1,#disambigeps[s] do=]@@
@@[= =][= =][= =][= disambiguated[s][disambigeps[s][i]]=true=]@@
=][= =][= =][=disambiguated[s][disambigeps[s][i]]=true=]@@
@@[= =][= =][= end=]@@
=][= =][=end=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= --Function that returns the Wikipedia URL=]@@
@@[= =][= function tokens.wikipedia(s,e)=]@@
@@[= =][= =][= local pagename=adeps[s][e]=]@@
@@[= =][= =][= pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= if disambiguated[s][e] then=]@@
@@[= =][= =][= =][= --Technically, parentheses don't have to be percent-encoded=]@@
@@[= =][= =][= =][= --for HTTP URIs because they're unused sub-delims=]@@
@@[= =][= =][= =][= --per section 2.2 of RFC 3986, so we concatenate after=]@@
@@[= =][= =][= =][= --the function that percent-encodes all sub-delims=]@@
@@[= =][= =][= =][= pagename=pagename.."_(Arrested_Development)"=]@@
@@[= =][= =][= end=]@@

to:

@@[= =][= --Function =][=--Function that returns the Wikipedia URL=]@@
@@[= =][= function =][=function tokens.wikipedia(s,e)=]@@
@@[= =][= =][= local =][= =][=local pagename=adeps[s][e]=]@@
@@[= =][= =][= pagename=string.=][= =][=pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= pagename=urlencode.=][= =][=pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= if =][= =][=if disambiguated[s][e] then=]@@
@@[= =][= =][= =][= --Technically, =][= =][= =][=--Technically, parentheses don't have to be percent-encoded=]@@
@@[= =][= =][= =][= --for =][= =][= =][=--for HTTP URIs because they're unused sub-delims=]@@
@@[= =][= =][= =][= --per =][= =][= =][=--per section 2.2 of RFC 3986, so we concatenate after=]@@
@@[= =][= =][= =][= --the =][= =][= =][=--the function that percent-encodes all sub-delims=]@@
@@[= =][= =][= =][= pagename=pagename..=][= =][= =][=pagename=pagename.."_(Arrested_Development)"=]@@
@@[= =][= =][= end=]@@=][= =][=end=]@@



@@[= =][= =][= return "http://en.wikipedia.org/wiki/"..pagename=]@@
@@[= =][= end=]@@

to:

@@[= =][= =][= return =][= =][=return "http://en.wikipedia.org/wiki/"..pagename=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= =][= local pagename=adeps[s][e]=]@@
@@[= =][= =][= pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= return "http://arresteddevelopment.wikia.com/wiki/"..pagename=]@@

to:

@@[= =][= =][= local =][= =][=local pagename=adeps[s][e]=]@@
@@[= =][= =][= pagename=string.=][= =][=pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= pagename=urlencode.=][= =][=pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= return =][= =][=return "http://arresteddevelopment.wikia.com/wiki/"..pagename=]@@



@@[= =][= --Season 1 episodes that are listed at different numbers=]@@
@@[= =][= local s1flips={ [5]=6, [6]=5, [7]=8, [8]=7, [16]=18, [17]=16, [18]=17 }=]@@

to:

@@[= =][= --Season =][=--Season 1 episodes that are listed at different numbers=]@@
@@[= =][= local =][=local s1flips={ [5]=6, [6]=5, [7]=8, [8]=7, [16]=18, [17]=16, [18]=17 }=]@@



@@[= =][= --Function the returns the URL of the episode's page on the-op.com=]@@
@@[= =][= function tokens.theop(s,e)=]@@
@@[= =][= =][= --correct OutOfOrder Season 1 episodes=]@@
@@[= =][= =][= if s==1 then e = s1flips[e] or e end=]@@
@@[= =][= =][= return string.format("http://the-op.com/episode/%i%02i",s,e)=]@@
@@[= =][= end=]@@

to:

@@[= =][= --Function =][=--Function the returns the URL of the episode's page on the-op.com=]@@
@@[= =][= function =][=function tokens.theop(s,e)=]@@
@@[= =][= =][= --correct =][= =][=--correct OutOfOrder Season 1 episodes=]@@
@@[= =][= =][= if =][= =][=if s==1 then e = s1flips[e] or e end=]@@
@@[= =][= =][= return =][= =][=return string.format("http://the-op.com/episode/%i%02i",s,e)=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= --why hello, unreadable block of arbitrary indices, it sure sucks=]@@
@@[= =][= --that I have to use you=]@@
@@[= =][= local ttnums={=]@@
@@[= =][= =][= { 0515236, 0515256, 0515212, 0515223, 0515257,=]@@
@@[= =][= =][= =][= 0515214, 0515231, 0515221, 0515247, 0515235,=]@@
@@[= =][= =][= =][= 0515238, 0515226, 0515210, 0515244, 0515246,=]@@
@@[= =][= =][= =][= 0515228, 0515208, 0515222, 0515211, 0515258,=]@@
@@[= =][= =][= =][= 0515232, 0515224, },=]@@
@@[= =][= =][= { 0515253, 0515254, 0515209, 0515219, 0515243,=]@@
@@[= =][= =][= =][= 0515207, 0515248, 0515239, 0515213, 0515240,=]@@
@@[= =][= =][= =][= 0515234, 0515220, 0515229, 0515251, 0515255,=]@@
@@[= =][= =][= =][= 0515227, 0515245, 0515241, },=]@@
@@[= =][= =][= { 0515250, 0515249, 0515218, 0515233, 0515230,=]@@
@@[= =][= =][= =][= 0515252, 0515237, 0515225, 0515242, 0515216,=]@@
@@[= =][= =][= =][= 0515217, 0515215, 0757386, }=]@@
@@[= =][= }=]@@

to:

@@[= =][= --why =][=--why hello, unreadable block of arbitrary indices, it sure sucks=]@@
@@[= =][= --that =][=--that I have to use you=]@@
@@[= =][= local =][=local ttnums={=]@@
@@[= =][= =][= { =][= =][={ 0515236, 0515256, 0515212, 0515223, 0515257,=]@@
@@[= =][= =][= =][= 0515214, =][= =][= =][=0515214, 0515231, 0515221, 0515247, 0515235,=]@@
@@[= =][= =][= =][= 0515238, =][= =][= =][=0515238, 0515226, 0515210, 0515244, 0515246,=]@@
@@[= =][= =][= =][= 0515228, =][= =][= =][=0515228, 0515208, 0515222, 0515211, 0515258,=]@@
@@[= =][= =][= =][= 0515232, =][= =][= =][=0515232, 0515224, },=]@@
@@[= =][= =][= { =][= =][={ 0515253, 0515254, 0515209, 0515219, 0515243,=]@@
@@[= =][= =][= =][= 0515207, =][= =][= =][=0515207, 0515248, 0515239, 0515213, 0515240,=]@@
@@[= =][= =][= =][= 0515234, =][= =][= =][=0515234, 0515220, 0515229, 0515251, 0515255,=]@@
@@[= =][= =][= =][= 0515227, =][= =][= =][=0515227, 0515245, 0515241, },=]@@
@@[= =][= =][= { =][= =][={ 0515250, 0515249, 0515218, 0515233, 0515230,=]@@
@@[= =][= =][= =][= 0515252, =][= =][= =][=0515252, 0515237, 0515225, 0515242, 0515216,=]@@
@@[= =][= =][= =][= 0515217, =][= =][= =][=0515217, 0515215, 0757386, }=]@@
@@[= =][= }=]@@=][=}=]@@



@@[= =][= --Function that returns the URL for the episode's IMDB page=]@@
@@[= =][= function tokens.imdb(s,e)=]@@
@@[= =][= =][= return string.format("http://www.imdb.com/title/tt%07i/",ttnums[s][e])=]@@
@@[= =][= end=]@@

to:

@@[= =][= --Function =][=--Function that returns the URL for the episode's IMDB page=]@@
@@[= =][= function =][=function tokens.imdb(s,e)=]@@
@@[= =][= =][= return =][= =][=return string.format("http://www.imdb.com/title/tt%07i/",ttnums[s][e])=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= local watchnums={=]@@
@@[= =][= =][= { =][= =][= 589, =][= 1786, =][= 585, =][= 1781, =][= 1785,=]@@
@@[= =][= =][= =][= =][= 580, =][= 590, =][= 588, =][= 586, =][= 575,=]@@
@@[= =][= =][= =][= =][= 576, =][= 579, =][= 577, =][= 644, =][= 1783,=]@@
@@[= =][= =][= =][= =][= 591, =][= 582, =][= 584, =][= 578, =][= 581,=]@@
@@[= =][= =][= =][= =][= 583, =][= 587},=]@@
@@[= =][= =][= { =][= 6641, =][= 6644, =][= 6643, =][= 6638, =][= 6639,=]@@
@@[= =][= =][= =][= 12883, 13226, 12561, 12609, 12298,=]@@
@@[= =][= =][= =][= 12271, 12901, 13248, 13267, 13276,=]@@
@@[= =][= =][= =][= 13206, 12232, 12532},=]@@
@@[= =][= =][= { =][= 6640, =][= 6642, =][= 6635, =][= 6636, =][= 6637,=]@@
@@[= =][= =][= =][= 12497, 17189, 12523, 13139, 12225,=]@@
@@[= =][= =][= =][= 12317, 12194, 12215},=]@@
@@[= =][= }=]@@

to:

@@[= =][= local =][=local watchnums={=]@@
@@[= =][= =][= { =][= =][={ =][= =][= 589, =][= 1786, =][=589, =][= 585, =][=1786, =][= 1781, =][= 1785,=]@@
=][=585, =][= =][=1781, =][= =][=1785,=]@@
@@[= =][= =][= =][= =][= 580, =][= 590, =][= 588, =][= 586, =][= 575,=]@@
=][=580, =][= =][= =][=590, =][= =][= =][=588, =][= =][= =][=586, =][= =][= =][=575,=]@@
@@[= =][= =][= =][= =][= 576, =][= 579, =][= 577, =][= 644, =][= 1783,=]@@
=][=576, =][= =][= =][=579, =][= =][= =][=577, =][= =][= =][=644, =][= =][=1783,=]@@
@@[= =][= =][= =][= =][= 591, =][= 582, =][= 584, =][= 578, =][= 581,=]@@
=][=591, =][= =][= =][=582, =][= =][= =][=584, =][= =][= =][=578, =][= =][= =][=581,=]@@
@@[= =][= =][= =][= =][= 583, =][= 587},=]@@
@@[=
=][= =][= { =][= 6641, =][= 6644, =][=583, =][= 6643, =][= 6638, =][= 6639,=]@@
=][=587},=]@@
@@[= =][= =][= =][= 12883, =][={ =][= =][= =][=6641, =][= =][=6644, =][= =][=6643, =][= =][=6638, =][= =][=6639,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12883,
13226, 12561, 12609, 12298,=]@@
@@[= =][= =][= =][= 12271, =][= =][= =][= =][=12271, 12901, 13248, 13267, 13276,=]@@
@@[= =][= =][= =][= 13206, =][= =][= =][= =][=13206, 12232, 12532},=]@@
@@[= =][= =][= { =][= 6640, =][={ =][= 6642, =][= 6635, =][=6640, =][= 6636, =][=6642, =][= 6637,=]@@
=][=6635, =][= =][=6636, =][= =][=6637,=]@@
@@[= =][= =][= =][= 12497, =][= =][= =][= =][=12497, 17189, 12523, 13139, 12225,=]@@
@@[= =][= =][= =][= 12317, =][= =][= =][= =][=12317, 12194, 12215},=]@@
@@[= =][= }=]@@=][=}=]@@



@@[= =][= function tokens.hulu(s,e)=]@@
@@[= =][= =][= return string.format(=]@@
@@[= =][= =][= =][= "http://hulu.com/watch/%i", watchnums[s][e])=]@@
@@[= =][= end=]@@

to:

@@[= =][= function =][=function tokens.hulu(s,e)=]@@
@@[= =][= =][= return =][= =][=return string.format(=]@@
@@[= =][= =][= =][= "http://hulu.=][= =][= =][="http://hulu.com/watch/%i", watchnums[s][e])=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= --It's largely sequential, but not quite.=]@@
@@[= =][= --I printed out all the numbers and moved them around=]@@
@@[= =][= --to fit the correct order (which is both inconsistent=]@@
@@[= =][= --in IDs to Netflix order and Netflix to DVD order).=]@@
@@[= =][= local movieids={=]@@
@@[= =][= =][= { 70133673, 70133674, 70133675, 70133677, 70133676,=]@@
@@[= =][= =][= =][= 70133678, 70133680, 70133679, 70133681, 70133682,=]@@
@@[= =][= =][= =][= 70133683, 70133684, 70133685, 70133686, 70133687,=]@@
@@[= =][= =][= =][= 70133688, 70133689, 70133690, 70133691, 70133692,=]@@
@@[= =][= =][= =][= 70133693, 70133694, },=]@@
@@[= =][= =][= { 70133695, 70133696, 70133697, 70133698, 70133699,=]@@
@@[= =][= =][= =][= 70133700, 70133701, 70133702, 70133703, 70133704,=]@@
@@[= =][= =][= =][= 70133705, 70133706, 70133707, 70133708, 70133711,=]@@
@@[= =][= =][= =][= 70133709, 70133710, 70133712, },=]@@
@@[= =][= =][= { 70133713, 70133714, 70133715, 70133716, 70133717,=]@@
@@[= =][= =][= =][= 70133718, 70133720, 70133719, 70133721, 70133722,=]@@
@@[= =][= =][= =][= 70133723, 70133724, 70133725, }=]@@
@@[= =][= }=]@@

to:

@@[= =][= --It's =][=--It's largely sequential, but not quite.=]@@
@@[= =][= --I =][=--I printed out all the numbers and moved them around=]@@
@@[= =][= --to =][=--to fit the correct order (which is both inconsistent=]@@
@@[= =][= --in =][=--in IDs to Netflix order and Netflix to DVD order).=]@@
@@[= =][= local =][=local movieids={=]@@
@@[= =][= =][= { =][= =][={ 70133673, 70133674, 70133675, 70133677, 70133676,=]@@
@@[= =][= =][= =][= 70133678, =][= =][= =][=70133678, 70133680, 70133679, 70133681, 70133682,=]@@
@@[= =][= =][= =][= 70133683, =][= =][= =][=70133683, 70133684, 70133685, 70133686, 70133687,=]@@
@@[= =][= =][= =][= 70133688, =][= =][= =][=70133688, 70133689, 70133690, 70133691, 70133692,=]@@
@@[= =][= =][= =][= 70133693, =][= =][= =][=70133693, 70133694, },=]@@
@@[= =][= =][= { =][= =][={ 70133695, 70133696, 70133697, 70133698, 70133699,=]@@
@@[= =][= =][= =][= 70133700, =][= =][= =][=70133700, 70133701, 70133702, 70133703, 70133704,=]@@
@@[= =][= =][= =][= 70133705, =][= =][= =][=70133705, 70133706, 70133707, 70133708, 70133711,=]@@
@@[= =][= =][= =][= 70133709, =][= =][= =][=70133709, 70133710, 70133712, },=]@@
@@[= =][= =][= { =][= =][={ 70133713, 70133714, 70133715, 70133716, 70133717,=]@@
@@[= =][= =][= =][= 70133718, =][= =][= =][=70133718, 70133720, 70133719, 70133721, 70133722,=]@@
@@[= =][= =][= =][= 70133723, =][= =][= =][=70133723, 70133724, 70133725, }=]@@
@@[= =][= }=]@@=][=}=]@@



@@[= =][= function tokens.netflix(s,e)=]@@
@@[= =][= =][= return string.format(=]@@
@@[= =][= =][= =][= "http://www.netflix.com/WiPlayer?movieid=%i",movieids[s][e])=]@@
@@[= =][= end=]@@

to:

@@[= =][= function =][=function tokens.netflix(s,e)=]@@
@@[= =][= =][= return =][= =][=return string.format(=]@@
@@[= =][= =][= =][= "http://www.=][= =][= =][="http://www.netflix.com/WiPlayer?movieid=%i",movieids[s][e])=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= local template=[=[=]@@

to:

@@[= =][= local =][=local template=[=[=]@@



@@[= =][= function ad_ep_links(s,e)=]@@
@@[= =][= =][= return (string.gsub(template,"%$(%w+)",function(token) return tokens[token](s,e) end))=]@@
@@[= =][= end=]@@

to:

@@[= =][= function =][=function ad_ep_links(s,e)=]@@
@@[= =][= =][= return =][= =][=return (string.gsub(template,"%$(%w+)",function(token) return tokens[token](s,e) end))=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= --get the ep title=]@@
@@[= =][= local title=adeps[s][e]=]@@
@@[= =][= --replace the é in Beef Consommé=]@@
@@[= =][= title=string.gsub(title,'é','e')=]@@
@@[= =][= --transform to CamelCased WikiWord=]@@
@@[= =][= title=string.gsub(title,' (%l?)',string.upper)=]@@
@@[= =][= --Remove all non-alphanumeric characters=]@@
@@[= =][= title=string.gsub(title,'%W','')=]@@

to:

@@[= =][= --get =][=--get the ep title=]@@
@@[= =][= local =][=local title=adeps[s][e]=]@@
@@[= =][= --replace =][=--replace the é in Beef Consommé=]@@
@@[= =][= title=string.=][=title=string.gsub(title,'é','e')=]@@
@@[= =][= --transform =][=--transform to CamelCased WikiWord=]@@
@@[= =][= title=string.=][=title=string.gsub(title,' (%l?)',string.upper)=]@@
@@[= =][= --Remove =][=--Remove all non-alphanumeric characters=]@@
@@[= =][= title=string.=][=title=string.gsub(title,'%W','')=]@@



@@[= =][= return string.format("Recap/ArrestedDevelopmentS%iE%i%s",s,e,title)=]@@

to:

@@[= =][= return =][=return string.format("Recap/ArrestedDevelopmentS%iE%i%s",s,e,title)=]@@



@@[= =][= return tvtropes.post(=]@@
@@[= =][= =][= recap_pagename(s,e),=]@@
@@[= =][= =][= string.format(=]@@
@@[= =][= =][= =][= "\n\n%s\n!The ''ArrestedDevelopment'' episode \"%s\" provides examples of:\n\n",=]@@
@@[= =][= =][= =][= =][= ad_ep_links(s,e),adeps[s][e]),=]@@
@@[= =][= =][= "STUART",=]@@
@@[= =][= =][= "Adding interwiki links and example header automatically (Ask me about Lua)")=]@@

to:

@@[= =][= return =][=return tvtropes.post(=]@@
@@[= =][= =][= recap_pagename(s,e),=]@@
=][= =][=recap_pagename(s,e),=]@@
@@[= =][= =][= string.=][= =][=string.format(=]@@
@@[= =][= =][= =][= "\n\n%s\n!The =][= =][= =][="\n\n%s\n!The ''ArrestedDevelopment'' episode \"%s\" provides examples of:\n\n",=]@@
@@[= =][= =][= =][= =][= ad_ep_links(s,e),adeps[s][e]),=]@@
=][= =][= =][= =][=ad_ep_links(s,e),adeps[s][e]),=]@@
@@[= =][= =][= "STUART",=]@@
=][= =][="STUART",=]@@
@@[= =][= =][= "Adding =][= =][="Adding interwiki links and example header automatically (Ask me about Lua)")=]@@



@@[= =][= return function(s,e)=]@@
@@[= =][= =][= --until comment syntax is changed, Amigos is manual-only=]@@
@@[= =][= =][= if s==2 and e==3 then=]@@
@@[= =][= =][= =][= print "(Skipping Amigos because the links go all screwy)"=]@@
@@[= =][= =][= else=]@@
@@[= =][= =][= =][= local pagename=recap_pagename(s,e)=]@@
@@[= =][= =][= =][= local pageasis=tvtropes.get(pagename)=]@@
@@[= =][= =][= =][= local gsubsafelinks = string.gsub(ad_ep_links(s,e),"%%","%%%%")=]@@
@@[= =][= =][= =][= local success=]@@
@@[= =][= =][= =][= while not success do=]@@
@@[= =][= =][= =][= =][= local code=]@@
@@[= =][= =][= =][= =][= success, code = tvtropes.post(pagename,=]@@
@@[= =][= =][= =][= =][= =][= string.gsub(pageasis,"%%%%STARTLINKS%%%%.-%%%%ENDLINKS%%%%",gsubsafelinks),=]@@
@@[= =][= =][= =][= =][= =][= "STUART",reason)=]@@
@@[= =][= =][= =][= =][= if not success then print("Retrying... "..code) end=]@@
@@[= =][= =][= =][= end=]@@
@@[= =][= =][= end=]@@
@@[= =][= end=]@@

to:

@@[= =][= return =][=return function(s,e)=]@@
@@[= =][= =][= --until =][= =][=--until comment syntax is changed, Amigos is manual-only=]@@
@@[= =][= =][= if =][= =][=if s==2 and e==3 then=]@@
@@[= =][= =][= =][= print =][= =][= =][=print "(Skipping Amigos because the links go all screwy)"=]@@
@@[= =][= =][= else=]@@
=][= =][=else=]@@
@@[= =][= =][= =][= local =][= =][= =][=local pagename=recap_pagename(s,e)=]@@
@@[= =][= =][= =][= local =][= =][= =][=local pageasis=tvtropes.get(pagename)=]@@
@@[= =][= =][= =][= local =][= =][= =][=local gsubsafelinks = string.gsub(ad_ep_links(s,e),"%%","%%%%")=]@@
@@[= =][= =][= =][= local =][= =][= =][=local success=]@@
@@[= =][= =][= =][= while =][= =][= =][=while not success do=]@@
@@[= =][= =][= =][= =][= local =][= =][= =][= =][=local code=]@@
@@[= =][= =][= =][= =][= success, =][= =][= =][= =][=success, code = tvtropes.post(pagename,=]@@
@@[= =][= =][= =][= =][= =][= string.=][= =][= =][= =][= =][=string.gsub(pageasis,"%%%%STARTLINKS%%%%.-%%%%ENDLINKS%%%%",gsubsafelinks),=]@@
@@[= =][= =][= =][= =][= =][= "STUART",reason)=]@@
=][= =][= =][= =][= =][="STUART",reason)=]@@
@@[= =][= =][= =][= =][= if =][= =][= =][= =][=if not success then print("Retrying... "..code) end=]@@
@@[= =][= =][= =][= end=]@@
=][= =][= =][=end=]@@
@@[= =][= =][= end=]@@
=][= =][=end=]@@
@@[= =][= end=]@@=][=end=]@@



@@[= =][= for s=1,#adeps do=]@@
@@[= =][= =][= for e=1,#adeps[s] do=]@@
@@[= =][= =][= =][= print(string.format('Doing Season %i Episode %i, "%s"...',s,e,adeps[s][e]))=]@@
@@[= =][= =][= =][= f(s,e)=]@@
@@[= =][= =][= end=]@@
@@[= =][= end=]@@

to:

@@[= =][= for =][=for s=1,#adeps do=]@@
@@[= =][= =][= for =][= =][=for e=1,#adeps[s] do=]@@
@@[= =][= =][= =][= print(string.=][= =][= =][=print(string.format('Doing Season %i Episode %i, "%s"...',s,e,adeps[s][e]))=]@@
@@[= =][= =][= =][= f(s,e)=]@@
=][= =][= =][=f(s,e)=]@@
@@[= =][= =][= end=]@@
=][= =][=end=]@@
@@[= =][= end=]@@=][=end=]@@

Changed: 2603

Removed: 147

Is there an issue? Send a MessageReason:
dammit, tv tropes


@@[= =][= =][=--Ensure all newlines are in CRLF form=]@@
@@[= =][= =][=str = string.gsub (str, "\r?\n", "\r\n")=]@@
@@[= =][= =][=--Percent-encode all non-unreserved characters=]@@
@@[= =][= =][=--as per RFC 3986, Section 2.3=]@@
@@[= =][= =][=--(except for space, which gets plus-encoded)=]@@
@@[= =][= =][=str = string.gsub (str, "([^%w%-%.%_%~ ])",=]@@
@@[= =][= =][= =][= =][= =][= =][=function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@
@@[= =][= =][=--Convert spaces to plus signs=]@@
@@[= =][= =][=return string.gsub (str, " ", "+")=]@@

to:

@@[= =][= =][=--Ensure --Ensure all newlines are in CRLF form=]@@
@@[= =][= =][=str str = string.gsub (str, "\r?\n", "\r\n")=]@@
@@[= =][= =][=--Percent-encode --Percent-encode all non-unreserved characters=]@@
@@[= =][= =][=--as --as per RFC 3986, Section 2.3=]@@
@@[= =][= =][=--(except --(except for space, which gets plus-encoded)=]@@
@@[= =][= =][=str str = string.gsub (str, "([^%w%-%.%_%~ ])",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=function function (c) return string.format ("%%%02X", string.byte(c)) end)=]@@
@@[= =][= =][=--Convert --Convert spaces to plus signs=]@@
@@[= =][= =][=return return string.gsub (str, " ", "+")=]@@



@@[= =][= =][=--table of argument strings=]@@
@@[= =][= =][=local argts, i= {}, 1=]@@
@@[= =][= =][=for k, v in pairs(t) do=]@@
@@[= =][= =][= =][= =][=argts[i]=encode(k).."="..encode(v)=]@@
@@[= =][= =][= =][= =][=i=i+1=]@@
@@[= =][= =][=end=]@@
@@[= =][= =][=return table.concat(argts,'&')=]@@

to:

@@[= =][= =][=--table --table of argument strings=]@@
@@[= =][= =][=local local argts, i= {}, 1=]@@
@@[= =][= =][=for for k, v in pairs(t) do=]@@
@@[= =][= =][= =][= =][= =][=argts[i]=encode(k)..argts[i]=encode(k).."="..encode(v)=]@@
@@[= =][= =][= i=i+1=]@@
@@[= =][= =][= =][= =][=i=i+1=]@@
end=]@@
@@[= =][= =][=end=]@@
@@[= =][= =][=return
return table.concat(argts,'&')=]@@



@@[= =][= =][=return "http://:foamy@tvtropes.org/pmwiki/pmwiki.php/"..page=]@@

to:

@@[= =][= =][=return return "http://:foamy@tvtropes.org/pmwiki/pmwiki.php/"..page=]@@



@@[= =][= =][=--Require pagename=]@@
@@[= =][= =][=assert(type(page)=="string","Destination page name required")=]@@
@@[= =][= =][=--If no namespace specified, assume Main=]@@
@@[= =][= =][=if not string.find(page,'/') then page="Main/"..page end=]@@

to:

@@[= =][= =][=--Require --Require pagename=]@@
@@[= =][= =][=assert(type(page)=="string","Destination assert(type(page)=="string","Destination page name required")=]@@
@@[= =][= =][=--If --If no namespace specified, assume Main=]@@
@@[= =][= =][=if if not string.find(page,'/') then page="Main/"..page end=]@@



@@[= =][= =][=return page=]@@

to:

@@[= =][= =][=return return page=]@@



@@[= =][= =][=page=fullname(page)=]@@

to:

@@[= =][= =][=page=fullname(page)=]@@page=fullname(page)=]@@



@@[= =][= =][=assert(type(body)=="string","Page body required")=]@@

to:

@@[= =][= =][=assert(type(body)=="string","Page assert(type(body)=="string","Page body required")=]@@



@@[= =][= =][=local response ==]@@
@@[= =][= =][= =][= =][={http.request(authpageurl(page),=]@@
@@[= =][= =][= =][= =][= =][= =][=urlencode.table{=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=action="post", post="save",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=pagename=page, text=body,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=author=author or "Anonymous",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=reason=reason or ""=]@@
@@[= =][= =][= =][= =][= =][= =][=})}=]@@

to:

@@[= =][= =][=local local response ==]@@
@@[= =][= =][= =][= =][= =][={http.{http.request(authpageurl(page),=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=urlencode.urlencode.table{=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=action="post", action="post", post="save",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=pagename=page, pagename=page, text=body,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=author=author author=author or "Anonymous",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=reason=reason reason=reason or ""=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=})}=]@@})}=]@@



@@[= =][= =][=--Error on any socket errors=]@@
@@[= =][= =][=assert(response[1],response[2])=]@@

to:

@@[= =][= =][=--Error --Error on any socket errors=]@@
@@[= =][= =][=assert(response[1],response[2])=]@@assert(response[1],response[2])=]@@



@@[= =][= =][=--If it doesn't return Found, return nil, the status, and the body:=]@@
@@[= =][= =][=--sometimes it just rejects the password for some reason.=]@@
@@[= =][= =][=if tonumber(response[2])~=302 then=]@@
@@[= =][= =][= =][= =][=return nil, response[2], response[1]=]@@
@@[= =][= =][=else return true=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=--If --If it doesn't return Found, return nil, the status, and the body:=]@@
@@[= =][= =][=--sometimes --sometimes it just rejects the password for some reason.=]@@
@@[= =][= =][=if if tonumber(response[2])~=302 then=]@@
@@[= =][= =][= =][= =][= =][=return return nil, response[2], response[1]=]@@
@@[= =][= =][=else else return true=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=local ents = {quot='"', amp='&', lt='<', gt='>'}=]@@

to:

@@[= =][= =][=local local ents = {quot='"', amp='&', lt='<', gt='>'}=]@@



@@[= =][= =][=function html2plain(src)=]@@
@@[= =][= =][= =][= =][=src=string.gsub(src,"<br/>","\n")=]@@
@@[= =][= =][= =][= =][=src=string.gsub(src,"&(%w-);",ents)=]@@
@@[= =][= =][= =][= =][=return src=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=function function html2plain(src)=]@@
@@[= =][= =][= =][= =][= =][=src=string.src=string.gsub(src,"<br/>","\n")=]@@
@@[= =][= =][= =][= =][= =][=src=string.src=string.gsub(src,"&(%w-);",ents)=]@@
@@[= =][= =][= =][= =][= =][=return return src=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=page=fullname(page)=]@@

to:

@@[= =][= =][=page=fullname(page)=]@@page=fullname(page)=]@@



@@[= =][= =][=local body, code = http.request(=]@@
@@[= =][= =][= =][= =][=authpageurl(page)..'?action=source')=]@@

to:

@@[= =][= =][=local local body, code = http.request(=]@@
@@[= =][= =][= =][= =][= =][=authpageurl(page)..authpageurl(page)..'?action=source')=]@@



@@[= =][= =][=--Trigger error on socket failure=]@@
@@[= =][= =][=assert(body,code)=]@@

to:

@@[= =][= =][=--Trigger --Trigger error on socket failure=]@@
@@[= =][= =][=assert(body,code)=]@@assert(body,code)=]@@



@@[= =][= =][=--Return the source converted back from the HTML conversion=]@@
@@[= =][= =][=return html2plain(body)=]@@

to:

@@[= =][= =][=--Return --Return the source converted back from the HTML conversion=]@@
@@[= =][= =][=return return html2plain(body)=]@@



@@[= =][= =][="urlencode.lua",=]@@
@@[= =][= =][="tvtropes.lua",=]@@
@@[= =][= =][="tropersrepo.lua",=]@@
@@[= =][= =][="arrdev_recap.lua",=]@@

to:

@@[= =][= =][="urlencode."urlencode.lua",=]@@
@@[= =][= =][="tvtropes."tvtropes.lua",=]@@
@@[= =][= =][="tropersrepo."tropersrepo.lua",=]@@
@@[= =][= =][="arrdev_recap."arrdev_recap.lua",=]@@



@@[= =][= =][=return string.format(=]@@
@@[= =][= =][= =][= =][="[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
@@[= =][= =][= =][= =][=name,script)=]@@

to:

@@[= =][= =][=return return string.format(=]@@
@@[= =][= =][= "[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
@@[= =][=
=][= =][= =][="[[folder:%s]]\n%s\n[[/folder]=]][=",=]@@
@@[= =][= =][= =][= =][=name,script)=]@@
name,script)=]@@



@@[= =][= =][=local folders={=]@@
@@[= =][= =][= =][= =][="%%START".."SCRIPTS%%",=]@@
@@[= =][= =][= =][= =][="[[foldercontrol]]"=]@@
@@[= =][= =][=}=]@@
@@[= =][= =][=local headers=#folders=]@@

to:

@@[= =][= =][=local local folders={=]@@
@@[= =][= =][= =][= =][= =][="%%START".."%%START".."SCRIPTS%%",=]@@
@@[= =][= =][= "[[foldercontrol]]"=]@@
@@[= =][= =][= =][= =][="[[foldercontrol]]"=]@@
}=]@@
@@[= =][= =][=}=]@@
@@[= =][= =][=local
local headers=#folders=]@@



@@[= =][= =][=for i=1, #scripts do=]@@
@@[= =][= =][= =][= =][=local slines={}=]@@
@@[= =][= =][= =][= =][=for line in io.lines(scripts[i]) do=]@@

to:

@@[= =][= =][=for for i=1, #scripts do=]@@
@@[= =][= =][= =][= =][= =][=local local slines={}=]@@
@@[= =][= =][= =][= =][= =][=for for line in io.lines(scripts[i]) do=]@@



@@[= =][= =][= =][= =][= =][= =][=if line=="" then=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]='\\\\'=]@@
@@[= =][= =][= =][= =][= =][= =][=else=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--escape everything, and only fiddle with=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--what must be fiddled with=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][=if if line=="" then=]@@
@@[= =][= =][= =][= =][= slines[#slines+1]='\\\\'=]@@
@@[= =][= =][=
=][= else=]@@
@@[= =][= =][= =][=
=][= =][= =][= =][= =][= =][=slines[#slines+1]='\\\\'=]@@
@@[= =][= =][= =][= =][= =][= =][=else=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--escape
--escape everything, and only fiddle with=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--what --what must be fiddled with=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=--split anything that would end the escaped region=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--split --split anything that would end the escaped region=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=local local escaped=string.gsub(line,"=]=[=]","=]=[=]=[=]=[=]")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=--also split the folder controls, because hurf durf that ignores=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--non-formatting=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--also --also split the folder controls, because hurf durf that ignores=]@@
@@[= =][= =][= =][= =][= --non-formatting=]@@
@@[= =][= =][= =][=
=][= =][= =][= =][= =][= =][= =][=--non-formatting=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.
escaped=string.gsub(escaped,"folder]=]][=","folder]=]=[=]][=")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=--do I hate this? yes, I do.=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--escape _every single instance of more than two adjacent spaces_=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--to keep them from being folded on commit=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"^ *",function(s)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s," "," =]=[=][=")=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=end)=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--do --do I hate this? yes, I do.=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--escape --escape _every single instance of more than two adjacent spaces_=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=--to --to keep them from being folded on commit=]@@
@@[= =][= =][= =][= =][= escaped=string.gsub(escaped," =][= =][= =][= =][= =][= =][= =][=escaped=string.gsub(escaped,"^ *",function(s)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=return string.gsub(s,"
"," =]=[=][=")=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=end)=]@@
=]=[=][= ")=]@@



@@[= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@
@@[= =][= =][= =][= =][= =][= =][=end=]@@
@@[= =][= =][= =][= =][=end=]@@

to:

@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=slines[#slines+1]=string.slines[#slines+1]=string.format("@@[=%s=]=[=]@@",escaped)=]@@
@@[= =][= =][= =][= end=]@@
@@[= =][=
=][= =][= =][= =][= =][=end=]@@
@@[= =][= =][= =][= =][=end=]@@
end=]@@



@@[= =][= =][= =][= =][=local content=table.concat(slines,'\n')=]@@
@@[= =][= =][= =][= =][=folders[i+headers]=scriptfolder(scripts[i],content)=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][= =][= =][= =][=local local content=table.concat(slines,'\n')=]@@
@@[= =][= =][= folders[i+headers]=scriptfolder(scripts[i],content)=]@@
@@[= =][= =][= =][= =][=folders[i+headers]=scriptfolder(scripts[i],content)=]@@
@@[= =][= =][=end=]@@
end=]@@



@@[= =][= =][=folders[#folders+1]="%%END".."SCRIPTS%%"=]@@

to:

@@[= =][= =][=folders[#folders+1]="%%END"..folders[#folders+1]="%%END".."SCRIPTS%%"=]@@



@@[= =][= =][=return table.concat(folders,"\n\n")=]@@

to:

@@[= =][= =][=return return table.concat(folders,"\n\n")=]@@



@@[= =][= =][=local gssscripts=string.gsub(revsection(),"%%","%%%%")=]@@

to:

@@[= =][= =][=local local gssscripts=string.gsub(revsection(),"%%","%%%%")=]@@



@@[= =][= =][=print(string.format("Getting current version of %s...",target))=]@@

to:

@@[= =][= =][=print(string.print(string.format("Getting current version of %s...",target))=]@@



@@[= =][= =][=local current=tvtropes.get(target)=]@@

to:

@@[= =][= =][=local local current=tvtropes.get(target)=]@@



@@[= =][= =][=local updated=string.gsub(current,=]@@
@@[= =][= =][= =][= =][="%%%%START".."SCRIPTS%%%%.-%%%%END".."SCRIPTS%%%%",=]@@
@@[= =][= =][= =][= =][=gssscripts)=]@@

to:

@@[= =][= =][=local local updated=string.gsub(current,=]@@
@@[= =][= =][= =][= =][= =][="%%%%START".."%%%%START".."SCRIPTS%%%%.-%%%%END".."SCRIPTS%%%%",=]@@
@@[= =][= =][= =][= =][= =][=gssscripts)=]@@gssscripts)=]@@



@@[= =][= =][=print(string.format("Posting new version of %s...",target))=]@@

to:

@@[= =][= =][=print(string.print(string.format("Posting new version of %s...",target))=]@@



@@[= =][= =][=local posted=]@@
@@[= =][= =][=while not posted do=]@@
@@[= =][= =][= =][= =][=posted=tvtropes.post(target,updated,user,notes)=]@@
@@[= =][= =][= =][= =][=if not posted then print" Retrying..." end=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=local local posted=]@@
@@[= =][= =][=while while not posted do=]@@
@@[= =][= =][= =][= =][= =][=posted=tvtropes.posted=tvtropes.post(target,updated,user,notes)=]@@
@@[= =][= =][= =][= =][= =][=if if not posted then print" =][= Retrying..." end=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][={=]@@
@@[= =][= =][= =][= =][="Pilot",=]@@
@@[= =][= =][= =][= =][="Top Banana",=]@@
@@[= =][= =][= =][= =][="Bringing Up Buster",=]@@
@@[= =][= =][= =][= =][="Key Decisions",=]@@
@@[= =][= =][= =][= =][="Visiting Ours",=]@@
@@[= =][= =][= =][= =][="Charity Drive",=]@@
@@[= =][= =][= =][= =][="My Mother, The Car",=]@@
@@[= =][= =][= =][= =][="In God We Trust",=]@@
@@[= =][= =][= =][= =][="Storming the Castle",=]@@
@@[= =][= =][= =][= =][="Pier Pressure",=]@@
@@[= =][= =][= =][= =][="Public Relations",=]@@
@@[= =][= =][= =][= =][="Marta Complex",=]@@
@@[= =][= =][= =][= =][="Beef Consommé",=]@@
@@[= =][= =][= =][= =][="Shock and Aww",=]@@
@@[= =][= =][= =][= =][="Staff Infection",=]@@
@@[= =][= =][= =][= =][="Missing Kitty",=]@@
@@[= =][= =][= =][= =][="Altar Egos",=]@@
@@[= =][= =][= =][= =][="Justice Is Blind",=]@@
@@[= =][= =][= =][= =][="Best Man for the GOB",=]@@
@@[= =][= =][= =][= =][="Whistler's Mother",=]@@
@@[= =][= =][= =][= =][="Not Without My Daughter",=]@@
@@[= =][= =][= =][= =][="Let 'Em Eat Cake"=]@@
@@[= =][= =][=},=]@@
@@[= =][= =][={=]@@
@@[= =][= =][= =][= =][="The One Where Michael Leaves",=]@@
@@[= =][= =][= =][= =][="The One Where They Build a House",=]@@
@@[= =][= =][= =][= =][="¡Amigos!",=]@@
@@[= =][= =][= =][= =][="Good Grief",=]@@
@@[= =][= =][= =][= =][="Sad Sack",=]@@
@@[= =][= =][= =][= =][="Afternoon Delight",=]@@
@@[= =][= =][= =][= =][="Switch Hitter",=]@@
@@[= =][= =][= =][= =][="Queen for a Day",=]@@
@@[= =][= =][= =][= =][="Burning Love",=]@@
@@[= =][= =][= =][= =][="Ready, Aim, Marry Me",=]@@
@@[= =][= =][= =][= =][="Out on a Limb",=]@@
@@[= =][= =][= =][= =][="Hand to God",=]@@
@@[= =][= =][= =][= =][="Motherboy XXX",=]@@
@@[= =][= =][= =][= =][="The Immaculate Election",=]@@
@@[= =][= =][= =][= =][="Sword of Destiny",=]@@
@@[= =][= =][= =][= =][="Meat the Veals",=]@@
@@[= =][= =][= =][= =][="Spring Breakout",=]@@
@@[= =][= =][= =][= =][="Righteous Brothers",=]@@
@@[= =][= =][=},=]@@
@@[= =][= =][={=]@@
@@[= =][= =][= =][= =][="The Cabin Show",=]@@
@@[= =][= =][= =][= =][="For British Eyes Only",=]@@
@@[= =][= =][= =][= =][="Forget-Me-Now",=]@@
@@[= =][= =][= =][= =][="Notapusy",=]@@
@@[= =][= =][= =][= =][="Mr. F",=]@@
@@[= =][= =][= =][= =][="The Ocean Walker",=]@@
@@[= =][= =][= =][= =][="Prison Break-In",=]@@
@@[= =][= =][= =][= =][="Making a Stand",=]@@
@@[= =][= =][= =][= =][="S.O.B.s",=]@@
@@[= =][= =][= =][= =][="Fakin' It",=]@@
@@[= =][= =][= =][= =][="Family Ties",=]@@
@@[= =][= =][= =][= =][="Exit Strategy",=]@@
@@[= =][= =][= =][= =][="Development Arrested"=]@@
@@[= =][= =][=},=]@@

to:

@@[= =][= =][={=]@@
{=]@@
@@[= =][= =][= "Pilot",=]@@
@@[= =][=
=][= =][= =][="Pilot",=]@@
@@[= =][= =][= =][= =][="Top
"Top Banana",=]@@
@@[= =][= =][= =][= =][= =][="Bringing "Bringing Up Buster",=]@@
@@[= =][= =][= =][= =][= =][="Key "Key Decisions",=]@@
@@[= =][= =][= =][= =][= =][="Visiting "Visiting Ours",=]@@
@@[= =][= =][= =][= =][= =][="Charity "Charity Drive",=]@@
@@[= =][= =][= =][= =][= =][="My "My Mother, The Car",=]@@
@@[= =][= =][= =][= =][= =][="In "In God We Trust",=]@@
@@[= =][= =][= =][= =][= =][="Storming "Storming the Castle",=]@@
@@[= =][= =][= =][= =][= =][="Pier "Pier Pressure",=]@@
@@[= =][= =][= =][= =][= =][="Public "Public Relations",=]@@
@@[= =][= =][= =][= =][= =][="Marta "Marta Complex",=]@@
@@[= =][= =][= =][= =][= =][="Beef "Beef Consommé",=]@@
@@[= =][= =][= =][= =][= =][="Shock "Shock and Aww",=]@@
@@[= =][= =][= =][= =][= =][="Staff "Staff Infection",=]@@
@@[= =][= =][= =][= =][= =][="Missing "Missing Kitty",=]@@
@@[= =][= =][= =][= =][= =][="Altar "Altar Egos",=]@@
@@[= =][= =][= =][= =][= =][="Justice "Justice Is Blind",=]@@
@@[= =][= =][= =][= =][= =][="Best "Best Man for the GOB",=]@@
@@[= =][= =][= =][= =][= =][="Whistler's "Whistler's Mother",=]@@
@@[= =][= =][= =][= =][= =][="Not "Not Without My Daughter",=]@@
@@[= =][= =][= =][= =][= =][="Let "Let 'Em Eat Cake"=]@@
@@[= =][= =][=},=]@@
},=]@@
@@[= =][= =][={=]@@
{=]@@
@@[= =][= =][= =][= =][= =][="The "The One Where Michael Leaves",=]@@
@@[= =][= =][= =][= =][= =][="The "The One Where They Build a House",=]@@
@@[= =][= =][= "¡Amigos!",=]@@
@@[= =][=
=][= =][= =][="¡Amigos!",=]@@
@@[= =][= =][= =][= =][="Good
"Good Grief",=]@@
@@[= =][= =][= =][= =][= =][="Sad "Sad Sack",=]@@
@@[= =][= =][= =][= =][= =][="Afternoon "Afternoon Delight",=]@@
@@[= =][= =][= =][= =][= =][="Switch "Switch Hitter",=]@@
@@[= =][= =][= =][= =][= =][="Queen "Queen for a Day",=]@@
@@[= =][= =][= =][= =][= =][="Burning "Burning Love",=]@@
@@[= =][= =][= =][= =][= =][="Ready, "Ready, Aim, Marry Me",=]@@
@@[= =][= =][= =][= =][= =][="Out "Out on a Limb",=]@@
@@[= =][= =][= =][= =][= =][="Hand "Hand to God",=]@@
@@[= =][= =][= =][= =][= =][="Motherboy "Motherboy XXX",=]@@
@@[= =][= =][= =][= =][= =][="The "The Immaculate Election",=]@@
@@[= =][= =][= =][= =][= =][="Sword "Sword of Destiny",=]@@
@@[= =][= =][= =][= =][= =][="Meat "Meat the Veals",=]@@
@@[= =][= =][= =][= =][= =][="Spring "Spring Breakout",=]@@
@@[= =][= =][= =][= =][= =][="Righteous "Righteous Brothers",=]@@
@@[= =][= =][=},=]@@
},=]@@
@@[= =][= =][={=]@@
{=]@@
@@[= =][= =][= =][= =][= =][="The "The Cabin Show",=]@@
@@[= =][= =][= =][= =][= =][="For "For British Eyes Only",=]@@
@@[= =][= =][= "Forget-Me-Now",=]@@
@@[= =][=
=][= "Notapusy",=]@@
@@[= =][=
=][= =][="Forget-Me-Now",=]@@
@@[= =][= =][= =][= =][="Notapusy",=]@@
@@[= =][= =][= =][= =][="Mr.
"Mr. F",=]@@
@@[= =][= =][= =][= =][= =][="The "The Ocean Walker",=]@@
@@[= =][= =][= =][= =][= =][="Prison "Prison Break-In",=]@@
@@[= =][= =][= =][= =][= =][="Making "Making a Stand",=]@@
@@[= =][= =][= =][= =][= =][="S."S.O.B.s",=]@@
@@[= =][= =][= =][= =][= =][="Fakin' "Fakin' It",=]@@
@@[= =][= =][= =][= =][= =][="Family "Family Ties",=]@@
@@[= =][= =][= =][= =][= =][="Exit "Exit Strategy",=]@@
@@[= =][= =][= =][= =][= =][="Development "Development Arrested"=]@@
@@[= =][= =][=},=]@@},=]@@



@@[= =][= =][=--Numbers for episodes with ambiguous titles, Wikipedia-wise,=]@@
@@[= =][= =][=--whose article titles end with "(Arrested Development)"=]@@
@@[= =][= =][=local disambigeps={=]@@
@@[= =][= =][= =][= =][={1,2,8,11,20,21,22}, --Season 1=]@@
@@[= =][= =][= =][= =][={5,6,8,9,11,12,18}, --Season 2=]@@
@@[= =][= =][= =][= =][={10,11,12} --Season 3=]@@
@@[= =][= =][=}=]@@

to:

@@[= =][= =][=--Numbers --Numbers for episodes with ambiguous titles, Wikipedia-wise,=]@@
@@[= =][= =][=--whose --whose article titles end with "(Arrested Development)"=]@@
@@[= =][= =][=local local disambigeps={=]@@
@@[= =][= =][= =][= =][= =][={1,2,8,11,20,21,22}, {1,2,8,11,20,21,22}, --Season 1=]@@
@@[= =][= =][= =][= =][= =][={5,6,8,9,11,12,18}, {5,6,8,9,11,12,18}, --Season 2=]@@
@@[= =][= =][= =][= =][= =][={10,11,12} {10,11,12} --Season 3=]@@
@@[= =][= =][=}=]@@}=]@@



@@[= =][= =][=--construct lookup table=]@@
@@[= =][= =][=local disambiguated={}=]@@
@@[= =][= =][=for s=1,#disambigeps do=]@@
@@[= =][= =][= =][= =][=disambiguated[s]={}=]@@
@@[= =][= =][= =][= =][=for i=1,#disambigeps[s] do=]@@
@@[= =][= =][= =][= =][= =][= =][=disambiguated[s][disambigeps[s][i]]=true=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=--construct --construct lookup table=]@@
@@[= =][= =][=local local disambiguated={}=]@@
@@[= =][= =][=for for s=1,#disambigeps do=]@@
@@[= =][= =][= disambiguated[s]={}=]@@
@@[= =][=
=][= =][= =][=disambiguated[s]={}=]@@
@@[= =][= =][= =][= =][=for
for i=1,#disambigeps[s] do=]@@
@@[= =][= =][= =][= disambiguated[s][disambigeps[s][i]]=true=]@@
@@[= =][=
=][= =][= =][= =][= =][=disambiguated[s][disambigeps[s][i]]=true=]@@
end=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@
end=]@@



@@[= =][= =][=--Function that returns the Wikipedia URL=]@@
@@[= =][= =][=function tokens.wikipedia(s,e)=]@@
@@[= =][= =][= =][= =][=local pagename=adeps[s][e]=]@@
@@[= =][= =][= =][= =][=pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= =][= =][=pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= =][= =][=if disambiguated[s][e] then=]@@
@@[= =][= =][= =][= =][= =][= =][=--Technically, parentheses don't have to be percent-encoded=]@@
@@[= =][= =][= =][= =][= =][= =][=--for HTTP URIs because they're unused sub-delims=]@@
@@[= =][= =][= =][= =][= =][= =][=--per section 2.2 of RFC 3986, so we concatenate after=]@@
@@[= =][= =][= =][= =][= =][= =][=--the function that percent-encodes all sub-delims=]@@
@@[= =][= =][= =][= =][= =][= =][=pagename=pagename.."_(Arrested_Development)"=]@@
@@[= =][= =][= =][= =][=end=]@@

to:

@@[= =][= =][=--Function --Function that returns the Wikipedia URL=]@@
@@[= =][= =][=function function tokens.wikipedia(s,e)=]@@
@@[= =][= =][= =][= =][= =][=local local pagename=adeps[s][e]=]@@
@@[= =][= =][= =][= =][= =][=pagename=string.pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= =][= =][= =][=pagename=urlencode.pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= =][= =][= =][=if if disambiguated[s][e] then=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--Technically, --Technically, parentheses don't have to be percent-encoded=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--for --for HTTP URIs because they're unused sub-delims=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--per --per section 2.2 of RFC 3986, so we concatenate after=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=--the --the function that percent-encodes all sub-delims=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=pagename=pagename..pagename=pagename.."_(Arrested_Development)"=]@@
@@[= =][= =][= =][= =][= =][=end=]@@end=]@@



@@[= =][= =][= =][= =][=return "http://en.wikipedia.org/wiki/"..pagename=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][= =][= =][= =][=return return "http://en.wikipedia.org/wiki/"..pagename=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][= =][= =][=local pagename=adeps[s][e]=]@@
@@[= =][= =][= =][= =][=pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= =][= =][=pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= =][= =][=return "http://arresteddevelopment.wikia.com/wiki/"..pagename=]@@

to:

@@[= =][= =][= =][= =][= =][=local local pagename=adeps[s][e]=]@@
@@[= =][= =][= =][= =][= =][=pagename=string.pagename=string.gsub(pagename,' ','_')=]@@
@@[= =][= =][= =][= =][= =][=pagename=urlencode.pagename=urlencode.string(pagename)=]@@
@@[= =][= =][= =][= =][= =][=return return "http://arresteddevelopment.wikia.com/wiki/"..pagename=]@@



@@[= =][= =][=--Season 1 episodes that are listed at different numbers=]@@
@@[= =][= =][=local s1flips={ [5]=6, [6]=5, [7]=8, [8]=7, [16]=18, [17]=16, [18]=17 }=]@@

to:

@@[= =][= =][=--Season --Season 1 episodes that are listed at different numbers=]@@
@@[= =][= =][=local local s1flips={ [5]=6, [6]=5, [7]=8, [8]=7, [16]=18, [17]=16, [18]=17 }=]@@



@@[= =][= =][=--Function the returns the URL of the episode's page on the-op.com=]@@
@@[= =][= =][=function tokens.theop(s,e)=]@@
@@[= =][= =][= =][= =][=--correct OutOfOrder Season 1 episodes=]@@
@@[= =][= =][= =][= =][=if s==1 then e = s1flips[e] or e end=]@@
@@[= =][= =][= =][= =][=return string.format("http://the-op.com/episode/%i%02i",s,e)=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=--Function --Function the returns the URL of the episode's page on the-op.com=]@@
@@[= =][= =][=function function tokens.theop(s,e)=]@@
@@[= =][= =][= =][= =][= =][=--correct --correct OutOfOrder Season 1 episodes=]@@
@@[= =][= =][= =][= =][= =][=if if s==1 then e = s1flips[e] or e end=]@@
@@[= =][= =][= =][= =][= =][=return return string.format("http://the-op.com/episode/%i%02i",s,e)=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=--why hello, unreadable block of arbitrary indices, it sure sucks=]@@
@@[= =][= =][=--that I have to use you=]@@
@@[= =][= =][=local ttnums={=]@@
@@[= =][= =][= =][= =][={ 0515236, 0515256, 0515212, 0515223, 0515257,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515214, 0515231, 0515221, 0515247, 0515235,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515238, 0515226, 0515210, 0515244, 0515246,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515228, 0515208, 0515222, 0515211, 0515258,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515232, 0515224, },=]@@
@@[= =][= =][= =][= =][={ 0515253, 0515254, 0515209, 0515219, 0515243,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515207, 0515248, 0515239, 0515213, 0515240,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515234, 0515220, 0515229, 0515251, 0515255,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515227, 0515245, 0515241, },=]@@
@@[= =][= =][= =][= =][={ 0515250, 0515249, 0515218, 0515233, 0515230,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515252, 0515237, 0515225, 0515242, 0515216,=]@@
@@[= =][= =][= =][= =][= =][= =][=0515217, 0515215, 0757386, }=]@@
@@[= =][= =][=}=]@@

to:

@@[= =][= =][=--why --why hello, unreadable block of arbitrary indices, it sure sucks=]@@
@@[= =][= =][=--that --that I have to use you=]@@
@@[= =][= =][=local local ttnums={=]@@
@@[= =][= =][= =][= =][= =][={ { 0515236, 0515256, 0515212, 0515223, 0515257,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515214, 0515214, 0515231, 0515221, 0515247, 0515235,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515238, 0515238, 0515226, 0515210, 0515244, 0515246,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515228, 0515228, 0515208, 0515222, 0515211, 0515258,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515232, 0515232, 0515224, },=]@@
@@[= =][= =][= =][= =][= =][={ { 0515253, 0515254, 0515209, 0515219, 0515243,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515207, 0515207, 0515248, 0515239, 0515213, 0515240,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515234, 0515234, 0515220, 0515229, 0515251, 0515255,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515227, 0515227, 0515245, 0515241, },=]@@
@@[= =][= =][= =][= =][= =][={ { 0515250, 0515249, 0515218, 0515233, 0515230,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515252, 0515252, 0515237, 0515225, 0515242, 0515216,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=0515217, 0515217, 0515215, 0757386, }=]@@
@@[= =][= =][=}=]@@}=]@@



@@[= =][= =][=--Function that returns the URL for the episode's IMDB page=]@@
@@[= =][= =][=function tokens.imdb(s,e)=]@@
@@[= =][= =][= =][= =][=return string.format("http://www.imdb.com/title/tt%07i/",ttnums[s][e])=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=--Function --Function that returns the URL for the episode's IMDB page=]@@
@@[= =][= =][=function function tokens.imdb(s,e)=]@@
@@[= =][= =][= =][= =][= =][=return return string.format("http://www.imdb.com/title/tt%07i/",ttnums[s][e])=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=local watchnums={=]@@
@@[= =][= =][= =][= =][={ 589, 1786, 585, 1781, 1785,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=580, 590, 588, 586, 575,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=576, 579, 577, 644, 1783,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=591, 582, 584, 578, 581,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=583, 587},=]@@
@@[= =][= =][= =][= =][={ 6641, 6644, 6643, 6638, 6639,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12883, 13226, 12561, 12609, 12298,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12271, 12901, 13248, 13267, 13276,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=13206, 12232, 12532},=]@@
@@[= =][= =][= =][= =][={ 6640, 6642, 6635, 6636, 6637,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12497, 17189, 12523, 13139, 12225,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12317, 12194, 12215},=]@@
@@[= =][= =][=}=]@@

to:

@@[= =][= =][=local local watchnums={=]@@
@@[= =][= =][= { =][= =][= 589, =][= =][={ 589, 1786, =][= 585, =][= 1781, =][= 1785,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=580, =][= =][= =][= =][= 580, =][= 590, =][= 588, =][= 586, =][= 575,=]@@
@@[= =][= =][= =][= =][= 576, =][= 579, =][= 577, =][= 644, =][= =][= =][= =][= =][= =][= =][= =][= =][=576, 579, 577, 644, 1783,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=591, =][= =][= =][= =][= 591, =][= 582, =][= 584, =][= 578, =][= 581,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][=583, =][= =][= =][= =][= 583, =][= 587},=]@@
@@[= =][= =][= =][= =][= =][={ { =][= 6641, =][= 6644, =][= 6643, =][= 6638, =][= 6639,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12883, =][= =][= =][= 12883, 13226, 12561, 12609, 12298,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12271, =][= =][= =][= 12271, 12901, 13248, 13267, 13276,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=13206, =][= =][= =][= 13206, 12232, 12532},=]@@
@@[= =][= =][= =][= =][= =][={ { =][= 6640, =][= 6642, =][= 6635, =][= 6636, =][= 6637,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12497, =][= =][= =][= 12497, 17189, 12523, 13139, 12225,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][=12317, =][= =][= =][= 12317, 12194, 12215},=]@@
@@[= =][= =][=}=]@@}=]@@



@@[= =][= =][=function tokens.hulu(s,e)=]@@
@@[= =][= =][= =][= =][=return string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][="http://hulu.com/watch/%i", watchnums[s][e])=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=function function tokens.hulu(s,e)=]@@
@@[= =][= =][= =][= =][= =][=return return string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][="http://hulu."http://hulu.com/watch/%i", watchnums[s][e])=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=--It's largely sequential, but not quite.=]@@
@@[= =][= =][=--I printed out all the numbers and moved them around=]@@
@@[= =][= =][=--to fit the correct order (which is both inconsistent=]@@
@@[= =][= =][=--in IDs to Netflix order and Netflix to DVD order).=]@@
@@[= =][= =][=local movieids={=]@@
@@[= =][= =][= =][= =][={ 70133673, 70133674, 70133675, 70133677, 70133676,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133678, 70133680, 70133679, 70133681, 70133682,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133683, 70133684, 70133685, 70133686, 70133687,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133688, 70133689, 70133690, 70133691, 70133692,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133693, 70133694, },=]@@
@@[= =][= =][= =][= =][={ 70133695, 70133696, 70133697, 70133698, 70133699,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133700, 70133701, 70133702, 70133703, 70133704,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133705, 70133706, 70133707, 70133708, 70133711,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133709, 70133710, 70133712, },=]@@
@@[= =][= =][= =][= =][={ 70133713, 70133714, 70133715, 70133716, 70133717,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133718, 70133720, 70133719, 70133721, 70133722,=]@@
@@[= =][= =][= =][= =][= =][= =][=70133723, 70133724, 70133725, }=]@@
@@[= =][= =][=}=]@@

to:

@@[= =][= =][=--It's --It's largely sequential, but not quite.=]@@
@@[= =][= =][=--I --I printed out all the numbers and moved them around=]@@
@@[= =][= =][=--to --to fit the correct order (which is both inconsistent=]@@
@@[= =][= =][=--in --in IDs to Netflix order and Netflix to DVD order).=]@@
@@[= =][= =][=local local movieids={=]@@
@@[= =][= =][= =][= =][= =][={ { 70133673, 70133674, 70133675, 70133677, 70133676,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133678, 70133678, 70133680, 70133679, 70133681, 70133682,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133683, 70133683, 70133684, 70133685, 70133686, 70133687,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133688, 70133688, 70133689, 70133690, 70133691, 70133692,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133693, 70133693, 70133694, },=]@@
@@[= =][= =][= =][= =][= =][={ { 70133695, 70133696, 70133697, 70133698, 70133699,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133700, 70133700, 70133701, 70133702, 70133703, 70133704,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133705, 70133705, 70133706, 70133707, 70133708, 70133711,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133709, 70133709, 70133710, 70133712, },=]@@
@@[= =][= =][= =][= =][= =][={ { 70133713, 70133714, 70133715, 70133716, 70133717,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133718, 70133718, 70133720, 70133719, 70133721, 70133722,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=70133723, 70133723, 70133724, 70133725, }=]@@
@@[= =][= =][=}=]@@}=]@@



@@[= =][= =][=function tokens.netflix(s,e)=]@@
@@[= =][= =][= =][= =][=return string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][="http://www.netflix.com/WiPlayer?movieid=%i",movieids[s][e])=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=function function tokens.netflix(s,e)=]@@
@@[= =][= =][= =][= =][= =][=return return string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][="http://www."http://www.netflix.com/WiPlayer?movieid=%i",movieids[s][e])=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=local template=[=[=]@@

to:

@@[= =][= =][=local local template=[=[=]@@



@@[= =][= =][=function ad_ep_links(s,e)=]@@
@@[= =][= =][= =][= =][=return (string.gsub(template,"%$(%w+)",function(token) return tokens[token](s,e) end))=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=function function ad_ep_links(s,e)=]@@
@@[= =][= =][= =][= =][= =][=return return (string.gsub(template,"%$(%w+)",function(token) return tokens[token](s,e) end))=]@@
@@[= =][= =][=end=]@@end=]@@



@@[= =][= =][=--get the ep title=]@@
@@[= =][= =][=local title=adeps[s][e]=]@@
@@[= =][= =][=--replace the é in Beef Consommé=]@@
@@[= =][= =][=title=string.gsub(title,'é','e')=]@@
@@[= =][= =][=--transform to CamelCased WikiWord=]@@
@@[= =][= =][=title=string.gsub(title,' (%l?)',string.upper)=]@@
@@[= =][= =][=--Remove all non-alphanumeric characters=]@@
@@[= =][= =][=title=string.gsub(title,'%W','')=]@@

to:

@@[= =][= =][=--get --get the ep title=]@@
@@[= =][= =][=local local title=adeps[s][e]=]@@
@@[= =][= =][=--replace --replace the é in Beef Consommé=]@@
@@[= =][= =][=title=string.title=string.gsub(title,'é','e')=]@@
@@[= =][= =][=--transform --transform to CamelCased WikiWord=]@@
@@[= =][= =][=title=string.title=string.gsub(title,' (%l?)',string.upper)=]@@
@@[= =][= =][=--Remove --Remove all non-alphanumeric characters=]@@
@@[= =][= =][=title=string.title=string.gsub(title,'%W','')=]@@



@@[= =][= =][=return string.format("Recap/ArrestedDevelopmentS%iE%i%s",s,e,title)=]@@

to:

@@[= =][= =][=return return string.format("Recap/ArrestedDevelopmentS%iE%i%s",s,e,title)=]@@



@@[= =][= =][=return tvtropes.post(=]@@
@@[= =][= =][= =][= =][=recap_pagename(s,e),=]@@
@@[= =][= =][= =][= =][=string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][="\n\n%s\n!The ''ArrestedDevelopment'' episode \"%s\" provides examples of:\n\n",=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=ad_ep_links(s,e),adeps[s][e]),=]@@
@@[= =][= =][= =][= =][="STUART",=]@@
@@[= =][= =][= =][= =][="Adding interwiki links and example header automatically (Ask me about Lua)")=]@@

to:

@@[= =][= =][=return return tvtropes.post(=]@@
@@[= =][= =][= recap_pagename(s,e),=]@@
@@[= =][=
=][= =][= =][=recap_pagename(s,e),=]@@
@@[= =][= =][= =][= =][=string.
string.format(=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][="\n\n%s\n!The "\n\n%s\n!The ''ArrestedDevelopment'' episode \"%s\" provides examples of:\n\n",=]@@
@@[= =][= =][= =][= =][= ad_ep_links(s,e),adeps[s][e]),=]@@
@@[= =][=
=][= "STUART",=]@@
@@[= =][=
=][= =][= =][= =][= =][= =][=ad_ep_links(s,e),adeps[s][e]),=]@@
@@[= =][= =][= =][= =][="STUART",=]@@
@@[= =][= =][= =][= =][="Adding
"Adding interwiki links and example header automatically (Ask me about Lua)")=]@@



@@[= =][= =][=return function(s,e)=]@@
@@[= =][= =][= =][= =][=--until comment syntax is changed, Amigos is manual-only=]@@
@@[= =][= =][= =][= =][=if s==2 and e==3 then=]@@
@@[= =][= =][= =][= =][= =][= =][=print "(Skipping Amigos because the links go all screwy)"=]@@
@@[= =][= =][= =][= =][=else=]@@
@@[= =][= =][= =][= =][= =][= =][=local pagename=recap_pagename(s,e)=]@@
@@[= =][= =][= =][= =][= =][= =][=local pageasis=tvtropes.get(pagename)=]@@
@@[= =][= =][= =][= =][= =][= =][=local gsubsafelinks = string.gsub(ad_ep_links(s,e),"%%","%%%%")=]@@
@@[= =][= =][= =][= =][= =][= =][=local success=]@@
@@[= =][= =][= =][= =][= =][= =][=while not success do=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local code=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=success, code = tvtropes.post(pagename,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=string.gsub(pageasis,"%%%%STARTLINKS%%%%.-%%%%ENDLINKS%%%%",gsubsafelinks),=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][="STUART",reason)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=if not success then print("Retrying... "..code) end=]@@
@@[= =][= =][= =][= =][= =][= =][=end=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=return return function(s,e)=]@@
@@[= =][= =][= =][= =][= =][=--until --until comment syntax is changed, Amigos is manual-only=]@@
@@[= =][= =][= =][= =][= =][=if if s==2 and e==3 then=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=print print "(Skipping Amigos because the links go all screwy)"=]@@
@@[= =][= =][= else=]@@
@@[= =][= =][=
=][= =][= =][=else=]@@
@@[= =][= =][= =][= =][= =][= =][=local
local pagename=recap_pagename(s,e)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local local pageasis=tvtropes.get(pagename)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local local gsubsafelinks = string.gsub(ad_ep_links(s,e),"%%","%%%%")=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=local local success=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=while while not success do=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=local local code=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=success, success, code = tvtropes.post(pagename,=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][= =][=string.string.gsub(pageasis,"%%%%STARTLINKS%%%%.-%%%%ENDLINKS%%%%",gsubsafelinks),=]@@
@@[= =][= =][= =][= =][= =][= "STUART",reason)=]@@
@@[= =][= =][= =][=
=][= =][= =][= =][= =][= =][= =][= =][= =][="STUART",reason)=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=if
if not success then print("Retrying... "..code) end=]@@
@@[= =][= =][= =][= end=]@@
@@[= =][= =][= end=]@@
@@[= =][= =][= =][= =][= =][= =][=end=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@
end=]@@



@@[= =][= =][=for s=1,#adeps do=]@@
@@[= =][= =][= =][= =][=for e=1,#adeps[s] do=]@@
@@[= =][= =][= =][= =][= =][= =][=print(string.format('Doing Season %i Episode %i, "%s"...',s,e,adeps[s][e]))=]@@
@@[= =][= =][= =][= =][= =][= =][=f(s,e)=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@

to:

@@[= =][= =][=for for s=1,#adeps do=]@@
@@[= =][= =][= =][= =][= =][=for for e=1,#adeps[s] do=]@@
@@[= =][= =][= =][= =][= =][= =][= =][= =][=print(string.print(string.format('Doing Season %i Episode %i, "%s"...',s,e,adeps[s][e]))=]@@
@@[= =][= =][= =][= f(s,e)=]@@
@@[= =][= =][= end=]@@
@@[= =][= =][= =][= =][= =][= =][=f(s,e)=]@@
@@[= =][= =][= =][= =][=end=]@@
@@[= =][= =][=end=]@@
end=]@@

Top