aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-04-15 18:04:36 +1000
committerYuchen Pei <hi@ypei.me>2022-04-15 18:04:36 +1000
commit999a1b6cf6553b44e924eeccd90f243504bab2c1 (patch)
treed7c75a5727bf2f7f6ade5973903061e9dea957c1
parent60415a2d640364ff7348d4580995494479203f59 (diff)
Added copyright and licensing notices.
-rw-r--r--cli_view.py17
-rw-r--r--html_view.py17
-rwxr-xr-xptv.py17
-rw-r--r--ptv_client.py21
-rw-r--r--server.py17
-rw-r--r--util.py17
6 files changed, 95 insertions, 11 deletions
diff --git a/cli_view.py b/cli_view.py
index 9c022f9..53e1360 100644
--- a/cli_view.py
+++ b/cli_view.py
@@ -1,3 +1,20 @@
+# Copyright (C) 2022 Yuchen Pei.
+#
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
+
import util
import ptv_client
diff --git a/html_view.py b/html_view.py
index 98306cb..038b047 100644
--- a/html_view.py
+++ b/html_view.py
@@ -1,3 +1,20 @@
+# Copyright (C) 2022 Yuchen Pei.
+#
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
+
from urllib import parse
import util
import ptv_client
diff --git a/ptv.py b/ptv.py
index d5efc77..7644c92 100755
--- a/ptv.py
+++ b/ptv.py
@@ -1,4 +1,19 @@
-#!/usr/bin/python
+# Copyright (C) 2022 Yuchen Pei.
+#
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
import ptv_client
import cli_view
diff --git a/ptv_client.py b/ptv_client.py
index ec89134..180399c 100644
--- a/ptv_client.py
+++ b/ptv_client.py
@@ -1,18 +1,19 @@
# Copyright (C) 2022 Yuchen Pei.
#
-# ptv.py is free software: you can redistribute it and/or modify it
-# under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
-# ptv.py is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Affero General Public License for more details.
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
# You should have received a copy of the GNU Affero General Public
-# License along with ptv.py. If not, see
-# <https://www.gnu.org/licenses/>.
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
from hashlib import sha1
from urllib import request, error, parse
diff --git a/server.py b/server.py
index 13e5c58..54813dd 100644
--- a/server.py
+++ b/server.py
@@ -1,3 +1,20 @@
+# Copyright (C) 2022 Yuchen Pei.
+#
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
+
from wsgiref.simple_server import make_server
from urllib.parse import parse_qs
import ptv_client
diff --git a/util.py b/util.py
index fe0ff01..bc3f127 100644
--- a/util.py
+++ b/util.py
@@ -1,3 +1,20 @@
+# Copyright (C) 2022 Yuchen Pei.
+#
+# This file is part of ptvtt.
+#
+# ptvtt is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# ptvtt is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General
+# Public License for more details.
+
+# You should have received a copy of the GNU Affero General Public
+# License along with ptvtt. If not, see <https://www.gnu.org/licenses/>.
+
from datetime import datetime, timezone
from zoneinfo import ZoneInfo