Hello community,

here is the log from the commit of package python-pyvdr for openSUSE:Factory 
checked in at 2020-07-14 07:56:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyvdr (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyvdr.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyvdr"

Tue Jul 14 07:56:08 2020 rev:3 rq:820093 version:0.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyvdr/python-pyvdr.changes        
2020-07-10 14:13:14.067599029 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyvdr.new.3060/python-pyvdr.changes      
2020-07-14 07:58:40.369669811 +0200
@@ -1,0 +2,8 @@
+Fri Jul 10 17:47:20 UTC 2020 - Martin Hauke <[email protected]>
+
+- Update to version 0.2.2
+  Fixes:
+  * channel epg info
+  * channel up/down controls
+
+-------------------------------------------------------------------

Old:
----
  pyvdr-0.2.1.tar.gz

New:
----
  pyvdr-0.2.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pyvdr.spec ++++++
--- /var/tmp/diff_new_pack.gMc46J/_old  2020-07-14 07:58:41.473673386 +0200
+++ /var/tmp/diff_new_pack.gMc46J/_new  2020-07-14 07:58:41.473673386 +0200
@@ -20,7 +20,7 @@
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 Name:           python-pyvdr
-Version:        0.2.1
+Version:        0.2.2
 Release:        0
 Summary:        Python library for accessing a Linux VDR via SVDRP
 License:        MIT

++++++ pyvdr-0.2.1.tar.gz -> pyvdr-0.2.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyvdr-0.2.1/.gitignore new/pyvdr-0.2.2/.gitignore
--- old/pyvdr-0.2.1/.gitignore  2020-07-09 16:45:38.000000000 +0200
+++ new/pyvdr-0.2.2/.gitignore  2020-07-10 17:46:47.000000000 +0200
@@ -1,10 +1,11 @@
 venv/
 .idea/
 build/
-dist/
+dist*/
 *.egg*
 .pytest_cache/
 .vscode/
 pyvdr/__pycache__/
 test/__pycache__/.cache
-.cache/
\ No newline at end of file
+.cache/
+*.pyc
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyvdr-0.2.1/pyvdr/pyvdr.py 
new/pyvdr-0.2.2/pyvdr/pyvdr.py
--- old/pyvdr-0.2.1/pyvdr/pyvdr.py      2020-07-09 16:45:38.000000000 +0200
+++ new/pyvdr-0.2.2/pyvdr/pyvdr.py      2020-07-10 17:46:47.000000000 +0200
@@ -124,18 +124,16 @@
         self.svdrp.send_cmd("CHAN")
         chan = self.svdrp.get_response()[-1]
         channel = self._parse_channel_response(chan)
-
-        self.svdrp.send_cmd("LSTE {} now".format(channel.number))
+        self.svdrp.send_cmd("LSTE {} now".format(channel['number']))
         epg_data = self.svdrp.get_response()[1:]
+        self.svdrp.disconnect()
         for d in epg_data:
             if d[0] == EPG_DATA_RECORD:
-                print(d[2])
                 epg = re.match(r'^(\S)\s(.*)$', d[2], re.M | re.I)
                 if epg is not None:
                     epg_field_type = epg.group(1)
                     epg_field_value = epg.group(2)
 
-                    print(epg_field_type)
                     if epg_field_type == 'T':
                         epg_title = epg_field_value
                     if epg_field_type == 'C':
@@ -151,12 +149,16 @@
     def channel_up(self):
         self.svdrp.connect()
         self.svdrp.send_cmd("CHAN +")
-        return self.svdrp.get_response_text()
+        reponse_text = self.svdrp.get_response_as_text()
+        self.svdrp.disconnect()
+        return reponse_text
 
     def channel_down(self):
         self.svdrp.connect()
         self.svdrp.send_cmd("CHAN -")
-        return self.svdrp.get_response_text()
+        reponse_text = self.svdrp.get_response_as_text()
+        self.svdrp.disconnect()
+        return reponse_text
 
     def list_recordings(self):
         self.svdrp.connect()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyvdr-0.2.1/pyvdr/svdrp.py 
new/pyvdr-0.2.2/pyvdr/svdrp.py
--- old/pyvdr-0.2.1/pyvdr/svdrp.py      2020-07-09 16:45:38.000000000 +0200
+++ new/pyvdr-0.2.2/pyvdr/svdrp.py      2020-07-10 17:46:47.000000000 +0200
@@ -38,7 +38,7 @@
             self.send_cmd("quit")
             self.socket_file.close()
             self.socket.close()
-        
+
         self.responses = []
         self.socket = None
 
@@ -79,11 +79,11 @@
     """
     def get_response_as_text(self):
         self._read_response()
-        print("".join(str(self.responses)))
+        return "".join(str(self.responses))
 
     """
     Gets the response of the latest CMD as data structure
-    By default returns a list, if single line set to true it will just return 
the 
+    By default returns a list, if single line set to true it will just return 
the
     1st state line.
     :return List of Namedtuple (Code, Separator, Value)
     """
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pyvdr-0.2.1/setup.py new/pyvdr-0.2.2/setup.py
--- old/pyvdr-0.2.1/setup.py    2020-07-09 16:45:38.000000000 +0200
+++ new/pyvdr-0.2.2/setup.py    2020-07-10 17:46:47.000000000 +0200
@@ -4,7 +4,7 @@
     long_description = fh.read()
 
 setup(name='pyvdr',
-      version='0.2.1',
+      version='0.2.2',
       description='Python library for accessing a Linux VDR via SVDRP',
       long_description=long_description,
       long_description_content_type="text/markdown",


Reply via email to