Removed unused namespaces

This commit is contained in:
Kalle Fagerberg 2022-08-28 15:36:00 +02:00 committed by thrillfall
parent 4409b11d60
commit 0e661a439f
3 changed files with 2 additions and 6 deletions

View File

@ -12,9 +12,7 @@ use OCA\GPodderSync\Db\SubscriptionChange\SubscriptionChangeRepository;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\JSONResponse;
use OCP\IL10N;
use OCP\IRequest;
use OCP\Settings\ISettings;
use Psr\Log\LoggerInterface;
@ -85,7 +83,7 @@ class PersonalSettingsController extends Controller {
try {
$podcast = $this->podcastCacheService->getCachedOrFetchPodcastData($url);
$sub['podcast'] = $podcast;
} catch (Exception $e) {
} catch (\Exception $e) {
$sub['podcast'] = null;
$this->logger->error("Failed to get podcast data.", [
'exception' => $e,

View File

@ -52,7 +52,7 @@ class PodcastCacheService {
'author' => self::getXPathContent($xml, '/rss/channel/itunes:author'),
'link' => (string)$channel->link,
'description' => (string)$channel->description,
'image' =>
'image' =>
self::getXPathContent($xml, '/rss/channel/image/url')
?? self::getXPathAttribute($xml, '/rss/channel/itunes:image/@href'),
'fetchedAtUnix' => (new DateTime())->getTimestamp(),

View File

@ -4,8 +4,6 @@ declare(strict_types=1);
namespace OCA\GPodderSync\Settings;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IConfig;
use OCP\IL10N;
use OCP\Settings\ISettings;
class GPodderSyncPersonal implements ISettings {