diff --git a/app/Http/Controllers/Peertube/Videos/Local.php b/app/Http/Controllers/Peertube/Videos/Local.php
index d136134..1351e65 100644
--- a/app/Http/Controllers/Peertube/Videos/Local.php
+++ b/app/Http/Controllers/Peertube/Videos/Local.php
@@ -28,7 +28,7 @@ class Local extends Common {
}
function getVideo ($start, $count) {
- $get = $this->ptapi_get('/api/v1/videos/?start='.$start.'&count='.$count.'&sort=-publishedAt&filter=local&skipCount=true&nsfw=both');
+ $get = $this->ptapi_get('/api/v1/videos?start='.$start.'&count='.$count.'&sort=-publishedAt&skipCount=true&isLocal=true&nsfw=both');
return $this->vidlist($get);
}
}
diff --git a/resources/views/pages/peertube/a.blade.php b/resources/views/pages/peertube/a.blade.php
index 7ba8c12..8eb3f53 100644
--- a/resources/views/pages/peertube/a.blade.php
+++ b/resources/views/pages/peertube/a.blade.php
@@ -1,5 +1,13 @@
@extends('theme.'.env('THEME').'.peertube')
@section('content')
- @include('theme.'.env('THEME').'.component.peertube.a')
+
+
+
+ @include('theme.'.env('THEME').'.component.peertube.parts.a.info')
+ @include('theme.'.env('THEME').'.component.peertube.parts.a.links')
+ @include('theme.'.env('THEME').'.component.peertube.parts.a.channels')
+
+
+
@endsection
diff --git a/resources/views/pages/peertube/c.blade.php b/resources/views/pages/peertube/c.blade.php
index c6cc33d..ff843e5 100644
--- a/resources/views/pages/peertube/c.blade.php
+++ b/resources/views/pages/peertube/c.blade.php
@@ -1,5 +1,9 @@
@extends('theme.'.env('THEME').'.peertube')
@section('content')
- @include('theme.'.env('THEME').'.component.peertube.c')
+
+ @include('theme.'.env('THEME').'.component.peertube.parts.c.head')
+ @include('theme.'.env('THEME').'.component.peertube.parts.c.links')
+ @include('theme.'.env('THEME').'.component.peertube.parts.c.'.($res['cat'] == 'video-playlists' ? 'playlists' : 'videos'))
+
@endsection
diff --git a/resources/views/pages/peertube/videos/local.blade.php b/resources/views/pages/peertube/videos/local.blade.php
index e2680bb..ff65a2a 100644
--- a/resources/views/pages/peertube/videos/local.blade.php
+++ b/resources/views/pages/peertube/videos/local.blade.php
@@ -1,5 +1,34 @@
@extends('theme.'.env('THEME').'.peertube')
@section('content')
- @include('theme.'.env('THEME').'.component.peertube.videos.local')
+
-
-
- @include('theme.'.env('THEME').'.component.peertube.parts.a.info')
- @include('theme.'.env('THEME').'.component.peertube.parts.a.links')
- @include('theme.'.env('THEME').'.component.peertube.parts.a.channels')
-
-
-
\ No newline at end of file
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/a/channels.blade.php b/resources/views/theme/techsuwa/component/peertube/a/channels.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/a/channels.blade.php
rename to resources/views/theme/techsuwa/component/peertube/a/channels.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/a/channels/avatar.blade.php b/resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/a/channels/avatar.blade.php
rename to resources/views/theme/techsuwa/component/peertube/a/channels/avatar.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/a/channels/videos.blade.php b/resources/views/theme/techsuwa/component/peertube/a/channels/videos.blade.php
similarity index 95%
rename from resources/views/theme/techsuwa/component/peertube/parts/a/channels/videos.blade.php
rename to resources/views/theme/techsuwa/component/peertube/a/channels/videos.blade.php
index cbd554e..05fb34b 100644
--- a/resources/views/theme/techsuwa/component/peertube/parts/a/channels/videos.blade.php
+++ b/resources/views/theme/techsuwa/component/peertube/a/channels/videos.blade.php
@@ -11,8 +11,8 @@
$seconds = $v->duration;
$hours = floor($seconds / 3600);
$seconds -= $hours * 3600;
- $minutes = floor($seconds / 60);
- $seconds -= $minutes * 60;
+ $minutes = sprintf("%02d", floor($seconds / 60));
+ $seconds -= sprintf("%02d", $minutes * 60);
@endphp
{{ $hours != 0 ? $hours.':' : '' }}{{ $minutes != 0 ? $minutes.':' : '0:' }}{{ $seconds }}
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/a/info.blade.php b/resources/views/theme/techsuwa/component/peertube/a/info.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/a/info.blade.php
rename to resources/views/theme/techsuwa/component/peertube/a/info.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/a/links.blade.php b/resources/views/theme/techsuwa/component/peertube/a/links.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/a/links.blade.php
rename to resources/views/theme/techsuwa/component/peertube/a/links.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/c.blade.php b/resources/views/theme/techsuwa/component/peertube/c.blade.php
deleted file mode 100644
index 9d320be..0000000
--- a/resources/views/theme/techsuwa/component/peertube/c.blade.php
+++ /dev/null
@@ -1,5 +0,0 @@
-
- @include('theme.'.env('THEME').'.component.peertube.parts.c.head')
- @include('theme.'.env('THEME').'.component.peertube.parts.c.links')
- @include('theme.'.env('THEME').'.component.peertube.parts.c.'.($res['cat'] == 'video-playlists' ? 'playlists' : 'videos'))
-
\ No newline at end of file
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/head.blade.php b/resources/views/theme/techsuwa/component/peertube/c/head.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/head.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/head.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/head/banner.blade.php b/resources/views/theme/techsuwa/component/peertube/c/head/banner.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/head/banner.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/head/banner.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/head/info.blade.php b/resources/views/theme/techsuwa/component/peertube/c/head/info.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/head/info.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/head/info.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/head/owner.blade.php b/resources/views/theme/techsuwa/component/peertube/c/head/owner.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/head/owner.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/head/owner.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/links.blade.php b/resources/views/theme/techsuwa/component/peertube/c/links.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/links.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/links.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/playlists.blade.php b/resources/views/theme/techsuwa/component/peertube/c/playlists.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/playlists.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/playlists.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/c/videos.blade.php b/resources/views/theme/techsuwa/component/peertube/c/videos.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/c/videos.blade.php
rename to resources/views/theme/techsuwa/component/peertube/c/videos.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/common/paginate.blade.php b/resources/views/theme/techsuwa/component/peertube/common/paginate.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/common/paginate.blade.php
rename to resources/views/theme/techsuwa/component/peertube/common/paginate.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/common/subscribe.blade.php b/resources/views/theme/techsuwa/component/peertube/common/subscribe.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/common/subscribe.blade.php
rename to resources/views/theme/techsuwa/component/peertube/common/subscribe.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/common/videominature.blade.php b/resources/views/theme/techsuwa/component/peertube/common/videominature.blade.php
similarity index 96%
rename from resources/views/theme/techsuwa/component/peertube/parts/common/videominature.blade.php
rename to resources/views/theme/techsuwa/component/peertube/common/videominature.blade.php
index fc0b605..82b2417 100644
--- a/resources/views/theme/techsuwa/component/peertube/parts/common/videominature.blade.php
+++ b/resources/views/theme/techsuwa/component/peertube/common/videominature.blade.php
@@ -17,8 +17,8 @@
$seconds = $v->duration;
$hours = floor($seconds / 3600);
$seconds -= $hours * 3600;
- $minutes = floor($seconds / 60);
- $seconds -= $minutes * 60;
+ $minutes = sprintf("%02d", floor($seconds / 60));
+ $seconds -= sprintf("%02d", $minutes * 60);
@endphp
{{ $hours != 0 ? $hours.':' : '' }}{{ $minutes != 0 ? $minutes.':' : '0:' }}{{ $seconds }}
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/common/videosbydate.blade.php b/resources/views/theme/techsuwa/component/peertube/common/videosbydate.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/common/videosbydate.blade.php
rename to resources/views/theme/techsuwa/component/peertube/common/videosbydate.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/header.blade.php b/resources/views/theme/techsuwa/component/peertube/header.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/header.blade.php
rename to resources/views/theme/techsuwa/component/peertube/header.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/manifest.blade.php b/resources/views/theme/techsuwa/component/peertube/manifest.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/manifest.blade.php
rename to resources/views/theme/techsuwa/component/peertube/manifest.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu.blade.php b/resources/views/theme/techsuwa/component/peertube/menu.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/footer.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/footer.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/footer.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/footer.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top/inmylibrary.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top/inmylibrary.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top/inmylibrary.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top/inmylibrary.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top/loggedin.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top/loggedin.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top/loggedin.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top/loggedin.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top/loginmenu.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top/loginmenu.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top/loginmenu.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top/loginmenu.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top/notification.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top/notification.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top/notification.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top/notification.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/menu/top/oninstance.blade.php b/resources/views/theme/techsuwa/component/peertube/menu/top/oninstance.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/menu/top/oninstance.blade.php
rename to resources/views/theme/techsuwa/component/peertube/menu/top/oninstance.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/meta.blade.php b/resources/views/theme/techsuwa/component/peertube/meta.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/meta.blade.php
rename to resources/views/theme/techsuwa/component/peertube/meta.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/style.blade.php b/resources/views/theme/techsuwa/component/peertube/style.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/style.blade.php
rename to resources/views/theme/techsuwa/component/peertube/style.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/stylelink.blade.php b/resources/views/theme/techsuwa/component/peertube/stylelink.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/stylelink.blade.php
rename to resources/views/theme/techsuwa/component/peertube/stylelink.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/videos/categories.blade.php b/resources/views/theme/techsuwa/component/peertube/videos/categories.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/videos/categories.blade.php
rename to resources/views/theme/techsuwa/component/peertube/videos/categories.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/parts/videos/channels.blade.php b/resources/views/theme/techsuwa/component/peertube/videos/channels.blade.php
similarity index 100%
rename from resources/views/theme/techsuwa/component/peertube/parts/videos/channels.blade.php
rename to resources/views/theme/techsuwa/component/peertube/videos/channels.blade.php
diff --git a/resources/views/theme/techsuwa/component/peertube/videos/local.blade.php b/resources/views/theme/techsuwa/component/peertube/videos/local.blade.php
deleted file mode 100644
index d740438..0000000
--- a/resources/views/theme/techsuwa/component/peertube/videos/local.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
- @include('theme.'.env('THEME').'.component.peertube.parts.common.videosbydate')
- @include('theme.'.env('THEME').'.component.peertube.parts.common.paginate', [
- 'root' => '/peertube/videos/local'
- ])
-
-
-
-
-
-
\ No newline at end of file
diff --git a/resources/views/theme/techsuwa/component/peertube/videos/overview.blade.php b/resources/views/theme/techsuwa/component/peertube/videos/overview.blade.php
deleted file mode 100644
index 8ad476a..0000000
--- a/resources/views/theme/techsuwa/component/peertube/videos/overview.blade.php
+++ /dev/null
@@ -1,18 +0,0 @@
-