This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.swift | |
// PlexCleaner | |
// | |
// Created by Jason Pierna on 22/10/2020. | |
// | |
import Foundation | |
struct ValidationError: Error, CustomStringConvertible { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Layout: UICollectionViewFlowLayout { | |
// Recompute layout on scroll | |
override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool { | |
return true | |
} | |
// Update header size based on content offset (and keep it at the top) | |
override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { | |
let layoutAttributes = super.layoutAttributes(in: rect) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash/ | |
# Variables and parameters | |
firstBaseUrl="http://south-park-tv.eu/videos" | |
secondBaseUrl="http://46.4.106.41" | |
startFromSeason=${1:-1} | |
endAtSeason=${2:-21} | |
baseFolder=$(pwd) |