Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-13 18:31+0000\n"
"POT-Creation-Date: 2026-02-22 05:25+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -302,6 +302,7 @@ msgstr ""

#: media/templates/admin/admin_stash_form.html:335
#: media/templates/admin/preferences.html:173
#: media/templates/admin/preferences.html:236
msgid "ago"
msgstr ""

Expand Down Expand Up @@ -849,6 +850,10 @@ msgstr ""
msgid "Project"
msgstr ""

#: media/templates/admin/preferences.html:233
msgid "Deployed"
msgstr ""

#: media/templates/media/home.html:187
msgid "StashCast illustration"
msgstr ""
Expand Down
Binary file modified locale/es/LC_MESSAGES/django.mo
Binary file not shown.
19 changes: 9 additions & 10 deletions locale/es/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-13 18:31+0000\n"
"POT-Creation-Date: 2026-02-22 05:25+0000\n"
"PO-Revision-Date: 2026-01-12 21:30+0000\n"
"Last-Translator: StashCast Team\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -314,6 +314,7 @@ msgstr "Acciones"

#: media/templates/admin/admin_stash_form.html:335
#: media/templates/admin/preferences.html:173
#: media/templates/admin/preferences.html:236
msgid "ago"
msgstr "hace"

Expand Down Expand Up @@ -645,16 +646,12 @@ msgstr "Todo el contenido en una fuente"

#: media/templates/admin/feed_links.html:272
#: media/templates/media/home.html:215
#, fuzzy
#| msgid "Audio feed"
msgid "Archive feed"
msgstr "Fuente de audio"
msgstr "Fuente de archivo"

#: media/templates/admin/feed_links.html:274
#, fuzzy
#| msgid "Audio Feed"
msgid "Archive Feed"
msgstr "Fuente de Audio"
msgstr "Fuente de Archivo"

#: media/templates/admin/feed_links.html:275
msgid "Archived content for reference"
Expand Down Expand Up @@ -717,10 +714,8 @@ msgid "Delete"
msgstr "Eliminar"

#: media/templates/admin/item_detail.html:182
#, fuzzy
#| msgid "Prefetching"
msgid "Refetch"
msgstr "Preparando"
msgstr "Recargar"

#: media/templates/admin/item_detail.html:187
msgid "Regenerate Summary"
Expand Down Expand Up @@ -893,6 +888,10 @@ msgstr ""
msgid "Project"
msgstr "Proyecto"

#: media/templates/admin/preferences.html:233
msgid "Deployed"
msgstr ""

#: media/templates/media/home.html:187
msgid "StashCast illustration"
msgstr "Ilustración de StashCast"
Expand Down
Binary file modified locale/pt/LC_MESSAGES/django.mo
Binary file not shown.
19 changes: 9 additions & 10 deletions locale/pt/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-02-13 18:31+0000\n"
"POT-Creation-Date: 2026-02-22 05:25+0000\n"
"PO-Revision-Date: 2026-01-12 22:00+0000\n"
"Last-Translator: StashCast Team\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down Expand Up @@ -312,6 +312,7 @@ msgstr "Ações"

#: media/templates/admin/admin_stash_form.html:335
#: media/templates/admin/preferences.html:173
#: media/templates/admin/preferences.html:236
msgid "ago"
msgstr "atrás"

Expand Down Expand Up @@ -642,16 +643,12 @@ msgstr "Todo o conteúdo em um feed"

#: media/templates/admin/feed_links.html:272
#: media/templates/media/home.html:215
#, fuzzy
#| msgid "Audio feed"
msgid "Archive feed"
msgstr "Feed de áudio"
msgstr "Feed de arquivo"

#: media/templates/admin/feed_links.html:274
#, fuzzy
#| msgid "Audio Feed"
msgid "Archive Feed"
msgstr "Feed de Áudio"
msgstr "Feed de Arquivo"

#: media/templates/admin/feed_links.html:275
msgid "Archived content for reference"
Expand Down Expand Up @@ -714,10 +711,8 @@ msgid "Delete"
msgstr "Excluir"

#: media/templates/admin/item_detail.html:182
#, fuzzy
#| msgid "Prefetching"
msgid "Refetch"
msgstr "Preparando"
msgstr "Rebaixar"

#: media/templates/admin/item_detail.html:187
msgid "Regenerate Summary"
Expand Down Expand Up @@ -890,6 +885,10 @@ msgstr ""
msgid "Project"
msgstr "Projeto"

#: media/templates/admin/preferences.html:233
msgid "Deployed"
msgstr ""

#: media/templates/media/home.html:187
msgid "StashCast illustration"
msgstr "Ilustração StashCast"
Expand Down
4 changes: 4 additions & 0 deletions media/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from django.apps import AppConfig
from django.utils import timezone


DEPLOY_TIME = timezone.now()


class MediaConfig(AppConfig):
Expand Down
8 changes: 2 additions & 6 deletions media/management/commands/create_test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ def handle(self, *args, **options):
password = options['password'] or os.getenv('TEST_PASSWORD')

if not password:
raise CommandError(
'TEST_PASSWORD is required (set env var or pass as argument).'
)
raise CommandError('TEST_PASSWORD is required (set env var or pass as argument).')

User = get_user_model()

Expand All @@ -44,6 +42,4 @@ def handle(self, *args, **options):
user.save()

action = 'Created' if created else 'Updated'
self.stdout.write(
self.style.SUCCESS(f"{action} test superuser '{username}'.")
)
self.stdout.write(self.style.SUCCESS(f"{action} test superuser '{username}'."))
28 changes: 28 additions & 0 deletions media/templates/admin/preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,34 @@ <h2>{% trans "About" %}</h2>
</a>
</td>
</tr>
<tr>
<td>{% trans "Deployed" %}</td>
<td>
<span id="deploy-time" data-utc="{{ deploy_time|date:'c' }}">
{{ deploy_time|timesince }} {% trans "ago" %} ({{ deploy_time }})
</span>
<script>
(function() {
var el = document.getElementById('deploy-time');
var utc = new Date(el.dataset.utc);
var now = new Date();
var diff = now - utc;
var mins = Math.floor(diff / 60000);
var hours = Math.floor(mins / 60);
var days = Math.floor(hours / 24);
var ago;
if (days > 0) ago = days + (days === 1 ? ' day' : ' days');
else if (hours > 0) ago = hours + (hours === 1 ? ' hour' : ' hours') + ', ' + (mins % 60) + ' minutes';
else ago = mins + (mins === 1 ? ' minute' : ' minutes');
var local = utc.toLocaleString(undefined, {
year: 'numeric', month: 'short', day: 'numeric',
hour: 'numeric', minute: '2-digit', timeZoneName: 'short'
});
el.textContent = ago + ' ago (' + local + ')';
})();
</script>
</td>
</tr>
</table>
</div>
{% endblock %}
3 changes: 3 additions & 0 deletions media/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,8 @@ def preferences_view(request):
# Episode limit
max_episodes = settings.STASHCAST_MAX_EPISODES

from media.apps import DEPLOY_TIME

context = {
**admin.site.each_context(request),
'title': 'About',
Expand All @@ -988,6 +990,7 @@ def preferences_view(request):
'last_download': last_download,
'total_storage_bytes': total_storage_bytes,
'max_episodes': max_episodes,
'deploy_time': DEPLOY_TIME,
}

return render(request, 'admin/preferences.html', context)
Expand Down
5 changes: 0 additions & 5 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,10 @@ export STASHCAST_USER_TOKEN="dummy"

./manage.py migrate

<<<<<<< claude/investigate-static-assets-setup-EY4D2
=======
# ./manage.py collectstatic --noinput

# for demo environment, keys off env vars
./manage.py create_demo_user || echo demo user not created

# for branch preview environment, keys off env vars
./manage.py create_test_user || echo test user not created

>>>>>>> main
./manage.py list_superusers