diff --git a/openlp/core/common/__init__.py b/openlp/core/common/__init__.py index 9796a0f7e..cd74dbdb9 100644 --- a/openlp/core/common/__init__.py +++ b/openlp/core/common/__init__.py @@ -34,7 +34,7 @@ from ipaddress import IPv4Address, IPv6Address, AddressValueError from shutil import which from subprocess import check_output, CalledProcessError, STDOUT -from PyQt5 import QtGui, QtWidgets +from PyQt5 import QtGui from PyQt5.QtCore import QCryptographicHash as QHash from PyQt5.QtNetwork import QAbstractSocket, QHostAddress, QNetworkInterface from chardet.universaldetector import UniversalDetector diff --git a/openlp/core/ui/media/vlcplayer.py b/openlp/core/ui/media/vlcplayer.py index 19ce7863c..0cadc8837 100644 --- a/openlp/core/ui/media/vlcplayer.py +++ b/openlp/core/ui/media/vlcplayer.py @@ -197,7 +197,7 @@ class VlcPlayer(MediaPlayer): """ return get_vlc() is not None - def load(self, display, file): # TODO: pathlib + def load(self, display, file): """ Load a video into VLC diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 2ce4b5d19..fcd8f159d 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -25,7 +25,6 @@ The service manager sets up, loads, saves and manages services. import html import json import os -import shutil import zipfile from contextlib import suppress from datetime import datetime, timedelta diff --git a/openlp/core/widgets/wizard.py b/openlp/core/widgets/wizard.py index 5619d5a3e..a4f12e49f 100644 --- a/openlp/core/widgets/wizard.py +++ b/openlp/core/widgets/wizard.py @@ -27,13 +27,11 @@ import logging from PyQt5 import QtCore, QtGui, QtWidgets from openlp.core.common import is_macosx -from openlp.core.common.i18n import UiStrings, translate +from openlp.core.common.i18n import translate from openlp.core.common.mixins import RegistryProperties from openlp.core.common.registry import Registry -from openlp.core.common.settings import Settings from openlp.core.lib.ui import add_welcome_page from openlp.core.ui.icons import UiIcons -from openlp.core.widgets.dialogs import FileDialog log = logging.getLogger(__name__) diff --git a/openlp/plugins/custom/lib/mediaitem.py b/openlp/plugins/custom/lib/mediaitem.py index fcf42f490..693ecace8 100644 --- a/openlp/plugins/custom/lib/mediaitem.py +++ b/openlp/plugins/custom/lib/mediaitem.py @@ -28,7 +28,7 @@ from sqlalchemy.sql import and_, func, or_ from openlp.core.common.i18n import UiStrings, translate from openlp.core.common.registry import Registry from openlp.core.common.settings import Settings -from openlp.core.lib import ServiceItemContext, check_item_selected +from openlp.core.lib import check_item_selected from openlp.core.lib.mediamanageritem import MediaManagerItem from openlp.core.lib.plugin import PluginStatus from openlp.core.lib.serviceitem import ItemCapabilities diff --git a/openlp/plugins/media/lib/mediaitem.py b/openlp/plugins/media/lib/mediaitem.py index 292312626..2ebacc0ae 100644 --- a/openlp/plugins/media/lib/mediaitem.py +++ b/openlp/plugins/media/lib/mediaitem.py @@ -29,7 +29,7 @@ from openlp.core.state import State from openlp.core.common.applocation import AppLocation from openlp.core.common.i18n import UiStrings, get_natural_key, translate from openlp.core.common.mixins import RegistryProperties -from openlp.core.common.path import Path, create_paths, path_to_str +from openlp.core.common.path import create_paths, path_to_str from openlp.core.common.registry import Registry from openlp.core.common.settings import Settings from openlp.core.lib import MediaType, ServiceItemContext, check_item_selected diff --git a/openlp/plugins/songs/lib/importers/cclifile.py b/openlp/plugins/songs/lib/importers/cclifile.py index d307c6ca7..f3c998d21 100644 --- a/openlp/plugins/songs/lib/importers/cclifile.py +++ b/openlp/plugins/songs/lib/importers/cclifile.py @@ -251,6 +251,7 @@ class CCLIFileImport(SongImport): line_number = 0 check_first_verse_line = False verse_text = '' + verse_type = VerseType.tags[VerseType.Verse] song_author = '' verse_start = False for line in text_list: @@ -262,6 +263,7 @@ class CCLIFileImport(SongImport): if verse_text: self.add_verse(verse_text, verse_type) verse_text = '' + verse_type = VerseType.tags[VerseType.Verse] verse_start = False else: # line_number=0, song title