mirror of
				https://github.com/ElvishArtisan/rivendell.git
				synced 2025-11-04 08:04:12 +01:00 
			
		
		
		
	* Added 'RD_PostPodcast()', 'RDRemovePodcast()' and 'RD_SavePodcast()' calls to the rivwebcapi API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
		
			
				
	
	
		
			206 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			206 lines
		
	
	
		
			5.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="ISO-8859-1"?>
 | 
						|
<refentry id="stdin" xmlns="http://docbook.org/ns/docbook" version="5.0">
 | 
						|
  <!--
 | 
						|
                    Header
 | 
						|
  -->
 | 
						|
  <refmeta>
 | 
						|
    <refentrytitle>RD_SavePodcast</refentrytitle>
 | 
						|
    <manvolnum>7</manvolnum>
 | 
						|
    <refmiscinfo class='source'>October 2020</refmiscinfo>
 | 
						|
    <refmiscinfo class='manual'>Rivendell C Library Manual</refmiscinfo>
 | 
						|
  </refmeta>
 | 
						|
  <refnamediv>
 | 
						|
    <refname>rd_savepodcast</refname>
 | 
						|
    <refpurpose>Rivendell Save Podcast C Library Function</refpurpose>
 | 
						|
  </refnamediv>
 | 
						|
  <info>
 | 
						|
    <author>
 | 
						|
      <personname>
 | 
						|
        <firstname>Fred</firstname>
 | 
						|
        <surname>Gleason</surname>
 | 
						|
        <email>fredg@paravelsystems.com</email>
 | 
						|
      </personname>
 | 
						|
      <contrib>Rivendell C Library Author</contrib>
 | 
						|
    </author>
 | 
						|
  </info>
 | 
						|
 | 
						|
  <!--
 | 
						|
                    Body
 | 
						|
  -->
 | 
						|
  <refsynopsisdiv id='synopsis'>
 | 
						|
    <funcsynopsis>
 | 
						|
      <funcsynopsisinfo>#include <rivwebcapi/rd_savepodcast.h></funcsynopsisinfo>
 | 
						|
    <funcprototype>
 | 
						|
      <funcdef>int <function>RD_SavePodcast</function></funcdef>
 | 
						|
      <paramdef>const char <parameter>hostname[]</parameter></paramdef>
 | 
						|
      <paramdef>const char <parameter>username[]</parameter></paramdef>
 | 
						|
      <paramdef>const char <parameter>passwd[]</parameter></paramdef>
 | 
						|
      <paramdef>const char <parameter>ticket[]</parameter></paramdef>
 | 
						|
      <paramdef>const unsigned <parameter>cast_id</parameter></paramdef>
 | 
						|
      <paramdef>const char <parameter>filename[]</parameter></paramdef>
 | 
						|
      <paramdef>const char <parameter>user_agent[]</parameter></paramdef>
 | 
						|
    </funcprototype> 
 | 
						|
    </funcsynopsis>
 | 
						|
 | 
						|
  </refsynopsisdiv>
 | 
						|
 | 
						|
  <refsect1 id='description'><title>Description</title>
 | 
						|
  <para>
 | 
						|
    <command>RD_SavePodcast</command> is the function to use
 | 
						|
    to copy finished RSS item audio to the Rivendell audio store.
 | 
						|
  </para>
 | 
						|
  <table xml:id="ex.savepodcast" frame="all">
 | 
						|
    <title>RD_SavePodcast function call fields</title>
 | 
						|
    <tgroup cols="4" align="left" colsep="1" rowsep="1">
 | 
						|
      <colspec colname="FIELD NAME" />
 | 
						|
      <colspec colname="FIELD TYPE" />
 | 
						|
      <colspec colname="MEANING" />
 | 
						|
      <colspec colname="REMARKS" />
 | 
						|
      <thead>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            FIELD NAME
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            FIELD TYPE
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            MEANING
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            REMARKS
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
      </thead>
 | 
						|
      <tbody>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            hostname
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Character Array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Name Of Rivendell DB Host
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory When NO Ticket Provided
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            username
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Character Array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Rivendell User Name
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            passwd
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Character Array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Rivendell User Password
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory When NO Ticket Provided
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            ticket
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Character Array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Rivendell Authentification Ticket
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory When NO User/Password Pair Provided.
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            cast_id
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
          unsigned integer
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            ID of podcast item
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            filename
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            character array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            File Name for Source Audio
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Mandatory
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
        <row>
 | 
						|
          <entry>
 | 
						|
            user_agent
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Character Array
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            User Agent Value put into HTTP request
 | 
						|
          </entry>
 | 
						|
          <entry>
 | 
						|
            Optional (default is Rivendell-C-API/x.x.x)
 | 
						|
          </entry>
 | 
						|
        </row>
 | 
						|
      </tbody>
 | 
						|
    </tgroup>
 | 
						|
  </table>
 | 
						|
  </refsect1>
 | 
						|
  <refsect2 id='returns'><title>RETURN VALUE</title>
 | 
						|
    <para>
 | 
						|
      On success, zero is returned. 
 | 
						|
    </para>
 | 
						|
    <para>
 | 
						|
      If a server error occurs a -1 is returned.
 | 
						|
      If a client error occurs a specific error number is returned.
 | 
						|
    </para>
 | 
						|
  </refsect2>
 | 
						|
  <refsect3 id='errors'><title>ERRORS</title>
 | 
						|
    <para>
 | 
						|
      400          Missing Podcast ID
 | 
						|
    </para>
 | 
						|
    <para>
 | 
						|
      400          Missing filename
 | 
						|
    </para>
 | 
						|
    <para>
 | 
						|
      403          User Authentification Error.
 | 
						|
    </para>
 | 
						|
    <para>
 | 
						|
      404          Unauthorized or no such podcast
 | 
						|
    </para>
 | 
						|
    <para>
 | 
						|
      nnn          Unknown Error Occurred.
 | 
						|
    </para>
 | 
						|
  </refsect3>
 | 
						|
     
 | 
						|
</refentry>
 |