mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 12:56:24 -05:00
Moving non-video functions to wrolpi.common. Handling Channel/Downlaod relationship in Channel.update.
Removing default download freqeuncy so channels will not be downloaded without a url and frequency. Adding channel unique url constraint. Handling when a Channel's directory may still be relative in DB. Adding TODOs to remove old favorites. Removing outdated favorites from config after favorites have been created. Testing that old-style favorited videos in the config are imported. Removing channels_by_link. Using list to store channels in config. Moving channel import function into lib. Supporting old channel import with links. Bumping version for channel.link removal. Removing all reference to Channel.link in app and api. Adding relative property to MediaPathType. Testing that a channel can be downloaded after it has a frequency added. All tests pass. Video and Channel tests pass without channel.link. Removing channel.link usage in channel api. Changing video Statistics page to About.
This commit is contained in:
parent
79efaa22b0
commit
aa203cc102
36 changed files with 1229 additions and 1308 deletions
|
|
@ -76,8 +76,8 @@ function VideoPage(props) {
|
|||
</Tab.Pane>
|
||||
};
|
||||
|
||||
let statisticsPane = {
|
||||
menuItem: 'Statistics', render: () => <Tab.Pane>
|
||||
let aboutPane = {
|
||||
menuItem: 'About', render: () => <Tab.Pane>
|
||||
<h3>Size</h3>
|
||||
<p>{video.size ? humanFileSize(video.size) : '???'}</p>
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ function VideoPage(props) {
|
|||
</Tab.Pane>
|
||||
};
|
||||
|
||||
let tabPanes = [descriptionPane, statisticsPane, captionsPane];
|
||||
let tabPanes = [descriptionPane, aboutPane, captionsPane];
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
@ -135,7 +135,7 @@ function VideoPage(props) {
|
|||
<h2>{video.title || video.video_path}</h2>
|
||||
{video.upload_date && <h3>{uploadDate(video.upload_date)}</h3>}
|
||||
<h3>
|
||||
{channel && <Link to={`/videos/channel/${channel.link}/video`}>
|
||||
{channel && <Link to={`/videos/channel/${channel.id}/video`}>
|
||||
{channel.name}
|
||||
</Link>}
|
||||
</h3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue